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

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

Issue 959503003: Remove ServiceDiscoveryClient* from PrivetHTTPAsynchronousFactoryImpl interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixEstablish
Patch Set: Tue Feb 24 23:11:53 PST 2015 Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_http_asynchronous_factory.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_PRIVET_HTTP_ASYNCHRONOUS_FACTORY_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_ASYNCHRONOUS_FACTORY_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_ASYNCHRONOUS_FACTORY_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_ASYNCHRONOUS_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace net { 13 namespace net {
14 class HostPortPair; 14 class HostPortPair;
15 class URLRequestContextGetter; 15 class URLRequestContextGetter;
16 } 16 }
17 17
18 namespace local_discovery { 18 namespace local_discovery {
19 19
20 class PrivetHTTPClient; 20 class PrivetHTTPClient;
21 class ServiceDiscoveryClient;
22 21
23 class PrivetHTTPResolution { 22 class PrivetHTTPResolution {
24 public: 23 public:
25 virtual ~PrivetHTTPResolution() {} 24 virtual ~PrivetHTTPResolution() {}
26 virtual void Start() = 0; 25 virtual void Start() = 0;
27 virtual const std::string& GetName() = 0; 26 virtual const std::string& GetName() = 0;
28 }; 27 };
29 28
30 class PrivetHTTPAsynchronousFactory { 29 class PrivetHTTPAsynchronousFactory {
31 public: 30 public:
32 typedef base::Callback<void(scoped_ptr<PrivetHTTPClient>)> ResultCallback; 31 typedef base::Callback<void(scoped_ptr<PrivetHTTPClient>)> ResultCallback;
33 32
34 virtual ~PrivetHTTPAsynchronousFactory() {} 33 virtual ~PrivetHTTPAsynchronousFactory() {}
35 34
36 static scoped_ptr<PrivetHTTPAsynchronousFactory> CreateInstance( 35 static scoped_ptr<PrivetHTTPAsynchronousFactory> CreateInstance(
37 ServiceDiscoveryClient* service_discovery_client,
38 net::URLRequestContextGetter* request_context); 36 net::URLRequestContextGetter* request_context);
39 37
40 virtual scoped_ptr<PrivetHTTPResolution> CreatePrivetHTTP( 38 virtual scoped_ptr<PrivetHTTPResolution> CreatePrivetHTTP(
41 const std::string& name, 39 const std::string& name,
42 const net::HostPortPair& address, 40 const net::HostPortPair& address,
43 const ResultCallback& callback) = 0; 41 const ResultCallback& callback) = 0;
44 }; 42 };
45 43
46 } // namespace local_discovery 44 } // namespace local_discovery
47 45
48 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_ASYNCHRONOUS_FACTORY_H_ 46 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_ASYNCHRONOUS_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_http_asynchronous_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698