OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_HOST_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_HOST_CLIENT_H_ |
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_HOST_CLIENT_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_HOST_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // Starts utility process with ServiceDiscoveryClient. | 42 // Starts utility process with ServiceDiscoveryClient. |
43 void Start(const base::Closure& error_callback); | 43 void Start(const base::Closure& error_callback); |
44 | 44 |
45 // Shutdowns utility process. | 45 // Shutdowns utility process. |
46 void Shutdown(); | 46 void Shutdown(); |
47 | 47 |
48 // ServiceDiscoveryClient implementation. | 48 // ServiceDiscoveryClient implementation. |
49 virtual scoped_ptr<ServiceWatcher> CreateServiceWatcher( | 49 virtual scoped_ptr<ServiceWatcher> CreateServiceWatcher( |
50 const std::string& service_type, | 50 const std::string& service_type, |
51 const ServiceWatcher::UpdatedCallback& callback) OVERRIDE; | 51 const ServiceWatcher::UpdatedCallback& callback) override; |
52 virtual scoped_ptr<ServiceResolver> CreateServiceResolver( | 52 virtual scoped_ptr<ServiceResolver> CreateServiceResolver( |
53 const std::string& service_name, | 53 const std::string& service_name, |
54 const ServiceResolver::ResolveCompleteCallback& callback) OVERRIDE; | 54 const ServiceResolver::ResolveCompleteCallback& callback) override; |
55 virtual scoped_ptr<LocalDomainResolver> CreateLocalDomainResolver( | 55 virtual scoped_ptr<LocalDomainResolver> CreateLocalDomainResolver( |
56 const std::string& domain, | 56 const std::string& domain, |
57 net::AddressFamily address_family, | 57 net::AddressFamily address_family, |
58 const LocalDomainResolver::IPAddressCallback& callback) OVERRIDE; | 58 const LocalDomainResolver::IPAddressCallback& callback) override; |
59 | 59 |
60 // UtilityProcessHostClient implementation. | 60 // UtilityProcessHostClient implementation. |
61 virtual void OnProcessCrashed(int exit_code) OVERRIDE; | 61 virtual void OnProcessCrashed(int exit_code) override; |
62 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 62 virtual bool OnMessageReceived(const IPC::Message& message) override; |
63 | 63 |
64 protected: | 64 protected: |
65 virtual ~ServiceDiscoveryHostClient(); | 65 virtual ~ServiceDiscoveryHostClient(); |
66 | 66 |
67 private: | 67 private: |
68 class ServiceWatcherProxy; | 68 class ServiceWatcherProxy; |
69 class ServiceResolverProxy; | 69 class ServiceResolverProxy; |
70 class LocalDomainResolverProxy; | 70 class LocalDomainResolverProxy; |
71 friend class ServiceDiscoveryClientUtility; | 71 friend class ServiceDiscoveryClientUtility; |
72 | 72 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 scoped_refptr<base::TaskRunner> callback_runner_; | 139 scoped_refptr<base::TaskRunner> callback_runner_; |
140 scoped_refptr<base::TaskRunner> io_runner_; | 140 scoped_refptr<base::TaskRunner> io_runner_; |
141 ScopedVector<IPC::Message> delayed_messages_; | 141 ScopedVector<IPC::Message> delayed_messages_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoveryHostClient); | 143 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoveryHostClient); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace local_discovery | 146 } // namespace local_discovery |
147 | 147 |
148 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_HOST_CLIENT_H_ | 148 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_HOST_CLIENT_H_ |
OLD | NEW |