Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "net/base/request_priority.h" | |
| 11 #include "net/http/http_transaction_factory.h" | |
| 12 | |
| 13 class DevToolsNetworkController; | |
| 14 | |
| 15 namespace net { | |
| 16 class HttpCache; | |
| 17 class HttpNetworkSession; | |
| 18 class HttpTransaction; | |
| 19 } // namespace net | |
| 20 | |
| 21 // NetworkTransactionFactory wraps HttpNetworkTransactions. | |
| 22 class DevToolsNetworkTransactionFactory: public net::HttpTransactionFactory { | |
|
mmenke
2014/03/31 18:10:20
nit: Space before colon
eustas
2014/04/18 12:33:19
Done.
| |
| 23 | |
| 24 public: | |
|
mmenke
2014/03/31 18:10:20
nit: No blank line before public
eustas
2014/04/18 12:33:19
Done.
| |
| 25 DevToolsNetworkTransactionFactory( | |
| 26 DevToolsNetworkController* controller, | |
| 27 net::HttpNetworkSession* session); | |
| 28 virtual ~DevToolsNetworkTransactionFactory(); | |
| 29 | |
| 30 // net::HttpTransactionFactory methods: | |
| 31 virtual int CreateTransaction( | |
| 32 net::RequestPriority priority, | |
| 33 scoped_ptr<net::HttpTransaction>* trans) OVERRIDE; | |
| 34 virtual net::HttpCache* GetCache() OVERRIDE; | |
| 35 virtual net::HttpNetworkSession* GetSession() OVERRIDE; | |
| 36 | |
| 37 private: | |
| 38 DevToolsNetworkController* controller_; | |
| 39 scoped_ptr<net::HttpTransactionFactory> network_layer_; | |
| 40 | |
| 41 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransactionFactory); | |
| 42 }; | |
| 43 | |
| 44 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ | |
| OLD | NEW |