Home
last modified time | relevance | path

Searched refs:service_type (Results 1 – 25 of 65) sorted by relevance

123

/external/chromium_org/chrome/browser/extensions/api/mdns/
Ddns_sd_registry_unittest.cc26 MockDnsSdDeviceLister* GetListerForService(const std::string& service_type) { in GetListerForService() argument
27 return listers_[service_type]; in GetListerForService()
30 int GetServiceListenerCount(const std::string& service_type) { in GetServiceListenerCount() argument
31 if (service_data_map_.find(service_type) == service_data_map_.end()) in GetServiceListenerCount()
34 return service_data_map_[service_type].get()->GetListenerCount(); in GetServiceListenerCount()
44 const std::string& service_type, in CreateDnsSdDeviceLister() argument
49 listers_[service_type] = lister; in CreateDnsSdDeviceLister()
83 const std::string service_type = "_testing._tcp.local"; in TEST_F() local
85 EXPECT_CALL(observer_, OnDnsSdEvent(service_type, in TEST_F()
88 registry_->RegisterDnsSdListener(service_type); in TEST_F()
[all …]
Ddns_sd_registry.cc125 const std::string& service_type, in CreateDnsSdDeviceLister() argument
127 return new DnsSdDeviceLister(discovery_client, delegate, service_type); in CreateDnsSdDeviceLister()
130 void DnsSdRegistry::RegisterDnsSdListener(std::string service_type) { in RegisterDnsSdListener() argument
131 VLOG(1) << "RegisterDnsSdListener: " << service_type in RegisterDnsSdListener()
132 << ", registered: " << IsRegistered(service_type); in RegisterDnsSdListener()
133 if (service_type.empty()) in RegisterDnsSdListener()
136 if (IsRegistered(service_type)) { in RegisterDnsSdListener()
137 service_data_map_[service_type]->ListenerAdded(); in RegisterDnsSdListener()
138 DispatchApiEvent(service_type); in RegisterDnsSdListener()
143 this, service_type, service_discovery_client_.get())); in RegisterDnsSdListener()
[all …]
Dmdns_apitest.cc29 MOCK_METHOD1(RegisterDnsSdListener, void(std::string service_type));
30 MOCK_METHOD1(UnregisterDnsSdListener, void(std::string service_type));
32 void DispatchMDnsEvent(const std::string& service_type, in DispatchMDnsEvent() argument
34 api_->OnDnsSdEvent(service_type, services); in DispatchMDnsEvent()
75 const std::string& service_type = "_googlecast._tcp.local"; in IN_PROC_BROWSER_TEST_F() local
78 EXPECT_CALL(*dns_sd_registry_, RegisterDnsSdListener(service_type)) in IN_PROC_BROWSER_TEST_F()
80 EXPECT_CALL(*dns_sd_registry_, UnregisterDnsSdListener(service_type)) in IN_PROC_BROWSER_TEST_F()
94 service.service_name = service_type; in IN_PROC_BROWSER_TEST_F()
97 dns_sd_registry_->DispatchMDnsEvent(service_type, services); in IN_PROC_BROWSER_TEST_F()
99 dns_sd_registry_->DispatchMDnsEvent(service_type, services); in IN_PROC_BROWSER_TEST_F()
[all …]
Ddns_sd_device_lister.cc35 const std::string& service_type) in DnsSdDeviceLister() argument
37 device_lister_(this, service_discovery_client, service_type), in DnsSdDeviceLister()
49 << device_lister_.service_type(); in Discover()
53 << device_lister_.service_type(); in Discover()
64 << "service_type: " << device_lister_.service_type(); in OnDeviceChanged()
65 delegate_->ServiceChanged(device_lister_.service_type(), added, service); in OnDeviceChanged()
71 << "service_type: " << device_lister_.service_type(); in OnDeviceRemoved()
72 delegate_->ServiceRemoved(device_lister_.service_type(), service_name); in OnDeviceRemoved()
77 << "service_type: " << device_lister_.service_type(); in OnDeviceCacheFlushed()
78 delegate_->ServicesFlushed(device_lister_.service_type()); in OnDeviceCacheFlushed()
Ddns_sd_registry.h35 virtual void OnDnsSdEvent(const std::string& service_type,
51 virtual void RegisterDnsSdListener(std::string service_type);
52 virtual void UnregisterDnsSdListener(std::string service_type);
88 const std::string& service_type,
92 virtual void ServiceChanged(const std::string& service_type,
95 virtual void ServiceRemoved(const std::string& service_type,
97 virtual void ServicesFlushed(const std::string& service_type) OVERRIDE;
102 void DispatchApiEvent(const std::string& service_type);
103 bool IsRegistered(const std::string& service_type);
Dmdns_api.cc24 bool IsServiceTypeWhitelisted(const std::string& service_type) { in IsServiceTypeWhitelisted() argument
25 return service_type == kCastServiceType || in IsServiceTypeWhitelisted()
26 service_type == kPrivetServiceType || in IsServiceTypeWhitelisted()
27 service_type == kTestServiceType; in IsServiceTypeWhitelisted()
124 void MDnsAPI::OnDnsSdEvent(const std::string& service_type, in OnDnsSdEvent() argument
144 event->filter_info.SetServiceType(service_type); in OnDnsSdEvent()
Ddns_sd_delegate.h38 virtual void ServiceChanged(const std::string& service_type,
41 virtual void ServiceRemoved(const std::string& service_type,
43 virtual void ServicesFlushed(const std::string& service_type) = 0;
/external/chromium_org/chrome/browser/signin/
Dsignin_header_helper.cc102 params.service_type = in BuildManageAccountsParams()
128 signin::GAIAServiceType service_type = manage_accounts_params.service_type; in ProcessMirrorHeaderUIThread() local
129 DCHECK_NE(signin::GAIA_SERVICE_TYPE_NONE, service_type); in ProcessMirrorHeaderUIThread()
140 switch (service_type) { in ProcessMirrorHeaderUIThread()
157 if (service_type == signin::GAIA_SERVICE_TYPE_INCOGNITO) { in ProcessMirrorHeaderUIThread()
167 service_type); in ProcessMirrorHeaderUIThread()
187 service_type(GAIA_SERVICE_TYPE_NONE), in ManageAccountsParams()
275 if (params.service_type == GAIA_SERVICE_TYPE_NONE) in ProcessMirrorResponseHeaderIfExists()
/external/chromium_org/cloud_print/gcp20/prototype/
Dservice_parameters.cc13 ServiceParameters::ServiceParameters(const std::string& service_type, in ServiceParameters() argument
20 : service_type_(service_type), in ServiceParameters()
22 service_name_(service_name_prefix + "." + service_type), in ServiceParameters()
/external/chromium_org/extensions/common/
Devent_filtering_info.h31 void SetServiceType(const std::string& service_type) { in SetServiceType() argument
32 service_type_ = service_type; in SetServiceType()
42 const std::string& service_type() const { return service_type_; } in service_type() function
/external/chromium_org/chrome/browser/local_discovery/
Dprivet_device_lister_unittest.cc22 virtual void ServiceWatcherStarted(const std::string& service_type,
24 virtual void ServiceResolverStarted(const std::string& service_type,
30 MockServiceWatcher(const std::string& service_type, in MockServiceWatcher() argument
33 : started_(false), service_type_(service_type), callback_(callback), in MockServiceWatcher()
118 const std::string& service_type, in CreateServiceWatcher() argument
121 new MockServiceWatcher(service_type, callback, mock_delegate_)); in CreateServiceWatcher()
150 MOCK_METHOD2(ServiceWatcherStarted, void(const std::string& service_type,
152 MOCK_METHOD2(ServiceResolverStarted, void(const std::string& service_type,
Dservice_discovery_device_lister.h31 const std::string& service_type);
37 std::string service_type() { return service_type_; } in service_type() function
Dtest_service_discovery_client.cc31 const std::string& service_type, in CreateServiceWatcher() argument
33 return service_discovery_client_impl_->CreateServiceWatcher(service_type, in CreateServiceWatcher()
Dservice_discovery_client_mac.h39 const std::string& service_type,
61 const std::string& service_type,
95 const std::string& service_type,
Dservice_discovery_client_mac.mm120 const std::string& service_type,
123 VLOG(1) << "CreateServiceWatcher: " << service_type;
125 service_type, callback, service_discovery_thread_->message_loop_proxy()));
158 const std::string& service_type,
161 : service_type_(service_type),
227 const std::string& service_type,
230 : service_type_(service_type),
235 service_type,
Dservice_discovery_device_lister.cc24 const std::string& service_type) in ServiceDiscoveryDeviceLister() argument
27 service_type_(service_type), in ServiceDiscoveryDeviceLister()
Dservice_discovery_client_mdns.cc177 const std::string& service_type, in ServiceWatcherProxy() argument
180 service_type_(service_type), in ServiceWatcherProxy()
185 service_type, in ServiceWatcherProxy()
332 const std::string& service_type, in CreateServiceWatcher() argument
336 new ServiceWatcherProxy(this, service_type, callback)); in CreateServiceWatcher()
Dservice_discovery_client_utility.cc22 const std::string& service_type, in CreateServiceWatcher() argument
25 return host_client_->CreateServiceWatcher(service_type, callback); in CreateServiceWatcher()
/external/chromium_org/chrome/browser/android/signin/
Daccount_management_screen_helper.cc17 signin::GAIAServiceType service_type) { in OpenAccountManagementScreen() argument
25 static_cast<int>(service_type)); in OpenAccountManagementScreen()
Daccount_management_screen_helper.h23 signin::GAIAServiceType service_type);
/external/chromium_org/chrome/common/local_discovery/
Dservice_discovery_client.h32 std::string service_type() const;
119 const std::string& service_type,
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
Dpeerconnection.cc107 ServiceType* service_type, in GetServiceTypeAndHostnameFromUri() argument
116 *service_type = static_cast<ServiceType>(i); in GetServiceTypeAndHostnameFromUri()
120 if (*service_type == INVALID) { in GetServiceTypeAndHostnameFromUri()
212 ServiceType service_type = INVALID; in ParseIceServers() local
214 &service_type, in ParseIceServers()
231 if (service_type == TURNS) { in ParseIceServers()
248 switch (service_type) { in ParseIceServers()
265 bool secure = (service_type == TURNS); in ParseIceServers()
/external/chromium_org/chrome/utility/local_discovery/
Dservice_discovery_message_handler.cc262 const std::string& service_type) { in OnStartWatcher() argument
265 base::Unretained(this), id, service_type)); in OnStartWatcher()
320 const std::string& service_type) { in StartWatcher() argument
321 VLOG(1) << "StartWatcher, id=" << id << ", type=" << service_type; in StartWatcher()
327 service_type, in StartWatcher()
Dservice_discovery_message_handler.h61 void OnStartWatcher(uint64 id, const std::string& service_type);
72 void StartWatcher(uint64 id, const std::string& service_type);
/external/chromium_org/chrome/tools/service_discovery_sniffer/
Dservice_discovery_sniffer.cc67 const std::string& service_type) in ServiceTypePrinter() argument
70 service_type, base::Bind(&ServiceTypePrinter::OnServiceUpdated, in ServiceTypePrinter()

123