Chromium Code Reviews| Index: chrome/browser/devtools/devtools_network_transaction_factory.h |
| diff --git a/chrome/browser/devtools/devtools_network_transaction_factory.h b/chrome/browser/devtools/devtools_network_transaction_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9c3e27110969e598d2e2e967f2ccb97a15ab9827 |
| --- /dev/null |
| +++ b/chrome/browser/devtools/devtools_network_transaction_factory.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright 2014 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ |
| +#define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "net/base/request_priority.h" |
| +#include "net/http/http_transaction_factory.h" |
| + |
| +class DevToolsNetworkController; |
| + |
| +namespace net { |
| +class HttpCache; |
| +class HttpNetworkSession; |
| +class HttpTransaction; |
| +} // namespace net |
| + |
| +// NetworkTransactionFactory wraps HttpNetworkTransactions. |
| +class DevToolsNetworkTransactionFactory: public net::HttpTransactionFactory { |
|
mmenke
2014/03/31 18:10:20
nit: Space before colon
eustas
2014/04/18 12:33:19
Done.
|
| + |
| + public: |
|
mmenke
2014/03/31 18:10:20
nit: No blank line before public
eustas
2014/04/18 12:33:19
Done.
|
| + DevToolsNetworkTransactionFactory( |
| + DevToolsNetworkController* controller, |
| + net::HttpNetworkSession* session); |
| + virtual ~DevToolsNetworkTransactionFactory(); |
| + |
| + // net::HttpTransactionFactory methods: |
| + virtual int CreateTransaction( |
| + net::RequestPriority priority, |
| + scoped_ptr<net::HttpTransaction>* trans) OVERRIDE; |
| + virtual net::HttpCache* GetCache() OVERRIDE; |
| + virtual net::HttpNetworkSession* GetSession() OVERRIDE; |
| + |
| + private: |
| + DevToolsNetworkController* controller_; |
| + scoped_ptr<net::HttpTransactionFactory> network_layer_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransactionFactory); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ |