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_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_MESSAGE_HANDLER_H_ | 5 #ifndef CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_MESSAGE_HANDLER_H_ |
6 #define CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_MESSAGE_HANDLER_H_ | 6 #define CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_MESSAGE_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 class ServiceDiscoveryClient; | 33 class ServiceDiscoveryClient; |
34 | 34 |
35 // Handles messages related to local discovery inside utility process. | 35 // Handles messages related to local discovery inside utility process. |
36 class ServiceDiscoveryMessageHandler : public UtilityMessageHandler { | 36 class ServiceDiscoveryMessageHandler : public UtilityMessageHandler { |
37 public: | 37 public: |
38 ServiceDiscoveryMessageHandler(); | 38 ServiceDiscoveryMessageHandler(); |
39 virtual ~ServiceDiscoveryMessageHandler(); | 39 virtual ~ServiceDiscoveryMessageHandler(); |
40 | 40 |
41 // UtilityMessageHandler implementation. | 41 // UtilityMessageHandler implementation. |
42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 42 virtual bool OnMessageReceived(const IPC::Message& message) override; |
43 | 43 |
44 static void PreSandboxStartup(); | 44 static void PreSandboxStartup(); |
45 | 45 |
46 private: | 46 private: |
47 typedef std::map<uint64, linked_ptr<ServiceWatcher> > ServiceWatchers; | 47 typedef std::map<uint64, linked_ptr<ServiceWatcher> > ServiceWatchers; |
48 typedef std::map<uint64, linked_ptr<ServiceResolver> > ServiceResolvers; | 48 typedef std::map<uint64, linked_ptr<ServiceResolver> > ServiceResolvers; |
49 typedef std::map<uint64, linked_ptr<LocalDomainResolver> > | 49 typedef std::map<uint64, linked_ptr<LocalDomainResolver> > |
50 LocalDomainResolvers; | 50 LocalDomainResolvers; |
51 | 51 |
52 // Lazy initializes ServiceDiscoveryClient. | 52 // Lazy initializes ServiceDiscoveryClient. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 scoped_ptr<ServiceDiscoveryClient> service_discovery_client_; | 108 scoped_ptr<ServiceDiscoveryClient> service_discovery_client_; |
109 | 109 |
110 scoped_refptr<base::TaskRunner> utility_task_runner_; | 110 scoped_refptr<base::TaskRunner> utility_task_runner_; |
111 scoped_refptr<base::TaskRunner> discovery_task_runner_; | 111 scoped_refptr<base::TaskRunner> discovery_task_runner_; |
112 scoped_ptr<base::Thread> discovery_thread_; | 112 scoped_ptr<base::Thread> discovery_thread_; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace local_discovery | 115 } // namespace local_discovery |
116 | 116 |
117 #endif // CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_MESSAGE_HANDLER_H_ | 117 #endif // CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_MESSAGE_HANDLER_H_ |
OLD | NEW |