Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome/browser/local_discovery/service_discovery_host_client.h

Issue 23707040: Fixed formating and added io_runner_. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/local_discovery/service_discovery_host_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 120
121 base::WeakPtr<content::UtilityProcessHost> utility_host_; 121 base::WeakPtr<content::UtilityProcessHost> utility_host_;
122 122
123 // Incrementing counter to assign ID to watchers and resolvers. 123 // Incrementing counter to assign ID to watchers and resolvers.
124 uint64 current_id_; 124 uint64 current_id_;
125 WatcherCallbacks service_watcher_callbacks_; 125 WatcherCallbacks service_watcher_callbacks_;
126 ResolverCallbacks service_resolver_callbacks_; 126 ResolverCallbacks service_resolver_callbacks_;
127 DomainResolverCallbacks domain_resolver_callbacks_; 127 DomainResolverCallbacks domain_resolver_callbacks_;
128 scoped_refptr<base::TaskRunner> callback_runner_; 128 scoped_refptr<base::TaskRunner> callback_runner_;
129 scoped_refptr<base::TaskRunner> io_runner_;
129 130
130 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoveryHostClient); 131 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoveryHostClient);
131 }; 132 };
132 133
133 class ServiceDiscoveryHostClientFactory : public base::NonThreadSafe { 134 class ServiceDiscoveryHostClientFactory : public base::NonThreadSafe {
134 public: 135 public:
135 ServiceDiscoveryHostClientFactory(); 136 ServiceDiscoveryHostClientFactory();
136 ~ServiceDiscoveryHostClientFactory(); 137 ~ServiceDiscoveryHostClientFactory();
137 138
138 static ServiceDiscoveryHostClient* GetClient(); 139 static ServiceDiscoveryHostClient* GetClient();
139 static void ReleaseClient(); 140 static void ReleaseClient();
140 141
141 private: 142 private:
142 friend class Singleton<ServiceDiscoveryHostClientFactory>; 143 friend class Singleton<ServiceDiscoveryHostClientFactory>;
143 144
144 static ServiceDiscoveryHostClientFactory* GetInstance(); 145 static ServiceDiscoveryHostClientFactory* GetInstance();
145 146
146 ServiceDiscoveryHostClient* GetClientInternal(); 147 ServiceDiscoveryHostClient* GetClientInternal();
147 void ReleaseClientInternal(); 148 void ReleaseClientInternal();
148 149
149 scoped_refptr<ServiceDiscoveryHostClient> instance_; 150 scoped_refptr<ServiceDiscoveryHostClient> instance_;
150 int references_; 151 int references_;
151 }; 152 };
152 153
153 } // namespace local_discovery 154 } // namespace local_discovery
154 155
155 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_HOST_CLIENT_H_ 156 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/local_discovery/service_discovery_host_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698