Chromium Code Reviews| Index: headless/public/network.h |
| diff --git a/headless/public/network.h b/headless/public/network.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a341e40159f2538c14df507e3799aa0ee6f41c9d |
| --- /dev/null |
| +++ b/headless/public/network.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef HEADLESS_PUBLIC_NETWORK_H_ |
| +#define HEADLESS_PUBLIC_NETWORK_H_ |
| + |
| +#include <base/memory/scoped_ptr.h> |
| +#include <base/memory/ref_counted.h> |
| + |
| +namespace net { |
| +class URLRequestContextGetter; |
| +class ClientSocketFactory; |
| +class HttpTransactionFactory; |
| +} |
| + |
| +namespace headless { |
| + |
| +class Network { |
| + public: |
| + static scoped_refptr<net::URLRequestContextGetter> |
| + CreateURLRequestContextGetterUsingSocketFactory( |
| + scoped_ptr<net::ClientSocketFactory> socket_factory); |
| + |
| + static scoped_refptr<net::URLRequestContextGetter> |
| + CreateURLRequestContextGetterUsingHttpTransactionFactory( |
| + scoped_ptr<net::HttpTransactionFactory> http_transaction_factory); |
| +}; |
|
Sami
2015/12/01 17:47:33
nit: delete the constructor?
altimin
2015/12/01 18:42:46
Done.
|
| + |
| +} // namespace headless |
| + |
| +#endif // HEADLESS_PUBLIC_NETWORK_H_ |