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.cc123 const std::string& service_type, in CreateDnsSdDeviceLister() argument
125 return new DnsSdDeviceLister(discovery_client, delegate, service_type); in CreateDnsSdDeviceLister()
128 void DnsSdRegistry::RegisterDnsSdListener(std::string service_type) { in RegisterDnsSdListener() argument
129 VLOG(1) << "RegisterDnsSdListener: " << service_type in RegisterDnsSdListener()
130 << ", registered: " << IsRegistered(service_type); in RegisterDnsSdListener()
131 if (service_type.empty()) in RegisterDnsSdListener()
134 if (IsRegistered(service_type)) { in RegisterDnsSdListener()
135 service_data_map_[service_type]->ListenerAdded(); in RegisterDnsSdListener()
136 DispatchApiEvent(service_type); in RegisterDnsSdListener()
141 this, service_type, service_discovery_client_)); in RegisterDnsSdListener()
[all …]
Dmdns_apitest.cc28 MOCK_METHOD1(RegisterDnsSdListener, void(std::string service_type));
29 MOCK_METHOD1(UnregisterDnsSdListener, void(std::string service_type));
31 void DispatchMDnsEvent(const std::string& service_type, in DispatchMDnsEvent() argument
33 api_->OnDnsSdEvent(service_type, services); in DispatchMDnsEvent()
74 const std::string& service_type = "_googlecast._tcp.local"; in IN_PROC_BROWSER_TEST_F() local
77 EXPECT_CALL(*dns_sd_registry_, RegisterDnsSdListener(service_type)) in IN_PROC_BROWSER_TEST_F()
79 EXPECT_CALL(*dns_sd_registry_, UnregisterDnsSdListener(service_type)) in IN_PROC_BROWSER_TEST_F()
93 service.service_name = service_type; in IN_PROC_BROWSER_TEST_F()
96 dns_sd_registry_->DispatchMDnsEvent(service_type, services); in IN_PROC_BROWSER_TEST_F()
98 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.cc97 params.service_type = in BuildManageAccountsParams()
123 signin::GAIAServiceType service_type = manage_accounts_params.service_type; in ProcessMirrorHeaderUIThread() local
124 DCHECK_NE(signin::GAIA_SERVICE_TYPE_NONE, service_type); in ProcessMirrorHeaderUIThread()
135 switch (service_type) { in ProcessMirrorHeaderUIThread()
152 if (service_type == signin::GAIA_SERVICE_TYPE_INCOGNITO) { in ProcessMirrorHeaderUIThread()
159 service_type); in ProcessMirrorHeaderUIThread()
179 service_type(GAIA_SERVICE_TYPE_NONE), in ManageAccountsParams()
264 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_utility.cc22 const std::string& service_type, in CreateServiceWatcher() argument
25 return host_client_->CreateServiceWatcher(service_type, callback); in CreateServiceWatcher()
Dservice_discovery_client_mdns.cc155 const std::string& service_type, in ServiceWatcherProxy() argument
158 service_type_(service_type), in ServiceWatcherProxy()
163 service_type, in ServiceWatcherProxy()
304 const std::string& service_type, in CreateServiceWatcher() argument
308 new ServiceWatcherProxy(this, 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.cc105 ServiceType* service_type, in GetServiceTypeAndHostnameFromUri() argument
114 *service_type = static_cast<ServiceType>(i); in GetServiceTypeAndHostnameFromUri()
118 if (*service_type == INVALID) { in GetServiceTypeAndHostnameFromUri()
210 ServiceType service_type = INVALID; in ParseIceServers() local
212 &service_type, in ParseIceServers()
229 if (service_type == TURNS) { in ParseIceServers()
246 switch (service_type) { in ParseIceServers()
263 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