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

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

Issue 1415653004: Resolve issue from feedback for 1417363004 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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_IMPL_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 base::WeakPtrFactory<PrivetLocalPrintOperationImpl> weak_factory_; 234 base::WeakPtrFactory<PrivetLocalPrintOperationImpl> weak_factory_;
235 }; 235 };
236 #endif // ENABLE_PRINT_PREVIEW 236 #endif // ENABLE_PRINT_PREVIEW
237 237
238 class PrivetHTTPClientImpl : public PrivetHTTPClient { 238 class PrivetHTTPClientImpl : public PrivetHTTPClient {
239 public: 239 public:
240 PrivetHTTPClientImpl( 240 PrivetHTTPClientImpl(
241 const std::string& name, 241 const std::string& name,
242 const net::HostPortPair& host_port, 242 const net::HostPortPair& host_port,
243 net::URLRequestContextGetter* request_context); 243 const scoped_refptr<net::URLRequestContextGetter>& context_getter);
244 PrivetHTTPClientImpl(
245 const std::string& name,
246 const net::HostPortPair& host_port,
247 const scoped_refptr<base::SingleThreadTaskRunner>& net_task_runner);
248 ~PrivetHTTPClientImpl() override; 244 ~PrivetHTTPClientImpl() override;
249 245
250 // PrivetHTTPClient implementation. 246 // PrivetHTTPClient implementation.
251 const std::string& GetName() override; 247 const std::string& GetName() override;
252 scoped_ptr<PrivetJSONOperation> CreateInfoOperation( 248 scoped_ptr<PrivetJSONOperation> CreateInfoOperation(
253 const PrivetJSONOperation::ResultCallback& callback) override; 249 const PrivetJSONOperation::ResultCallback& callback) override;
254 scoped_ptr<PrivetURLFetcher> CreateURLFetcher( 250 scoped_ptr<PrivetURLFetcher> CreateURLFetcher(
255 const GURL& url, 251 const GURL& url,
256 net::URLFetcher::RequestType request_type, 252 net::URLFetcher::RequestType request_type,
257 PrivetURLFetcher::Delegate* delegate) override; 253 PrivetURLFetcher::Delegate* delegate) override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 private: 293 private:
298 PrivetHTTPClient* info_client() { return info_client_.get(); } 294 PrivetHTTPClient* info_client() { return info_client_.get(); }
299 295
300 scoped_ptr<PrivetHTTPClient> info_client_; 296 scoped_ptr<PrivetHTTPClient> info_client_;
301 297
302 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); 298 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl);
303 }; 299 };
304 300
305 } // namespace local_discovery 301 } // namespace local_discovery
306 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ 302 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/privet_http.h ('k') | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698