OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "net/base/request_priority.h" | 10 #include "net/base/request_priority.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class DevToolsNetworkTransactionFactory : public net::HttpTransactionFactory { | 22 class DevToolsNetworkTransactionFactory : public net::HttpTransactionFactory { |
23 public: | 23 public: |
24 DevToolsNetworkTransactionFactory( | 24 DevToolsNetworkTransactionFactory( |
25 DevToolsNetworkController* controller, | 25 DevToolsNetworkController* controller, |
26 net::HttpNetworkSession* session); | 26 net::HttpNetworkSession* session); |
27 virtual ~DevToolsNetworkTransactionFactory(); | 27 virtual ~DevToolsNetworkTransactionFactory(); |
28 | 28 |
29 // net::HttpTransactionFactory methods: | 29 // net::HttpTransactionFactory methods: |
30 virtual int CreateTransaction( | 30 virtual int CreateTransaction( |
31 net::RequestPriority priority, | 31 net::RequestPriority priority, |
32 scoped_ptr<net::HttpTransaction>* trans) OVERRIDE; | 32 scoped_ptr<net::HttpTransaction>* trans) override; |
33 virtual net::HttpCache* GetCache() OVERRIDE; | 33 virtual net::HttpCache* GetCache() override; |
34 virtual net::HttpNetworkSession* GetSession() OVERRIDE; | 34 virtual net::HttpNetworkSession* GetSession() override; |
35 | 35 |
36 private: | 36 private: |
37 DevToolsNetworkController* controller_; | 37 DevToolsNetworkController* controller_; |
38 scoped_ptr<net::HttpTransactionFactory> network_layer_; | 38 scoped_ptr<net::HttpTransactionFactory> network_layer_; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransactionFactory); | 40 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransactionFactory); |
41 }; | 41 }; |
42 | 42 |
43 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ | 43 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_ |
OLD | NEW |