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

Side by Side Diff: headless/public/network.h

Issue 1461693003: [headless] Initial skeleton of headless/public/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes according to skyostil@'s comments Created 5 years 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef HEADLESS_PUBLIC_NETWORK_H_
6 #define HEADLESS_PUBLIC_NETWORK_H_
7
8 #include <base/memory/scoped_ptr.h>
9 #include <base/memory/ref_counted.h>
10
11 namespace net {
12 class URLRequestContextGetter;
13 class ClientSocketFactory;
14 class HttpTransactionFactory;
15 }
16
17 namespace headless {
18
19 class Network {
20 public:
21 static scoped_refptr<net::URLRequestContextGetter>
22 CreateURLRequestContextGetterUsingSocketFactory(
23 scoped_ptr<net::ClientSocketFactory> socket_factory);
24
25 static scoped_refptr<net::URLRequestContextGetter>
26 CreateURLRequestContextGetterUsingHttpTransactionFactory(
27 scoped_ptr<net::HttpTransactionFactory> http_transaction_factory);
28 };
Sami 2015/12/01 17:47:33 nit: delete the constructor?
altimin 2015/12/01 18:42:46 Done.
29
30 } // namespace headless
31
32 #endif // HEADLESS_PUBLIC_NETWORK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698