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_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "chrome/browser/devtools/devtools_network_interceptor.h" | 14 #include "chrome/browser/devtools/devtools_network_interceptor.h" |
15 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
16 #include "net/base/load_states.h" | 16 #include "net/base/load_states.h" |
17 #include "net/base/net_error_details.h" | 17 #include "net/base/net_error_details.h" |
18 #include "net/base/request_priority.h" | 18 #include "net/base/request_priority.h" |
19 #include "net/http/http_transaction.h" | 19 #include "net/http/http_transaction.h" |
20 #include "net/websockets/websocket_handshake_stream_base.h" | 20 #include "net/websockets/websocket_handshake_stream_base.h" |
21 | 21 |
22 class DevToolsNetworkController; | 22 class DevToolsNetworkController; |
23 class DevToolsNetworkUploadDataStream; | 23 class DevToolsNetworkUploadDataStream; |
24 class GURL; | 24 class GURL; |
25 | 25 |
26 namespace net { | 26 namespace net { |
27 class AuthCredentials; | 27 class AuthCredentials; |
28 class NetLogWithSource; | |
29 class HttpRequestHeaders; | 28 class HttpRequestHeaders; |
30 struct HttpRequestInfo; | 29 struct HttpRequestInfo; |
31 class HttpResponseInfo; | 30 class HttpResponseInfo; |
32 class HttpNetworkSession; | 31 class HttpNetworkSession; |
33 class IOBuffer; | 32 class IOBuffer; |
34 struct LoadTimingInfo; | 33 struct LoadTimingInfo; |
| 34 class NetLogWithSource; |
35 class X509Certificate; | 35 class X509Certificate; |
36 } // namespace net | 36 } // namespace net |
37 | 37 |
38 namespace test { | 38 namespace test { |
39 class DevToolsNetworkControllerHelper; | 39 class DevToolsNetworkControllerHelper; |
40 } | 40 } |
41 | 41 |
42 // DevToolsNetworkTransaction is a wrapper for network transaction. All | 42 // DevToolsNetworkTransaction is a wrapper for network transaction. All |
43 // HttpTransaction methods are proxied to real transaction, but |callback| | 43 // HttpTransaction methods are proxied to real transaction, but |callback| |
44 // parameter is saved and replaced with proxy callback. Fail method should be | 44 // parameter is saved and replaced with proxy callback. Fail method should be |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 const net::HttpRequestInfo* request_; | 127 const net::HttpRequestInfo* request_; |
128 | 128 |
129 // True if Fail was already invoked. | 129 // True if Fail was already invoked. |
130 bool failed_; | 130 bool failed_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); | 132 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); |
133 }; | 133 }; |
134 | 134 |
135 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 135 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
OLD | NEW |