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 BoundNetLog; | 28 class NetLogWithSource; |
Lei Zhang
2016/09/22 17:06:20
alphabetical order
| |
29 class HttpRequestHeaders; | 29 class HttpRequestHeaders; |
30 struct HttpRequestInfo; | 30 struct HttpRequestInfo; |
31 class HttpResponseInfo; | 31 class HttpResponseInfo; |
32 class HttpNetworkSession; | 32 class HttpNetworkSession; |
33 class IOBuffer; | 33 class IOBuffer; |
34 struct LoadTimingInfo; | 34 struct LoadTimingInfo; |
35 class X509Certificate; | 35 class X509Certificate; |
36 } // namespace net | 36 } // namespace net |
37 | 37 |
38 namespace test { | 38 namespace test { |
(...skipping 12 matching lines...) Expand all Loading... | |
51 | 51 |
52 DevToolsNetworkTransaction( | 52 DevToolsNetworkTransaction( |
53 DevToolsNetworkController* controller, | 53 DevToolsNetworkController* controller, |
54 std::unique_ptr<net::HttpTransaction> network_transaction); | 54 std::unique_ptr<net::HttpTransaction> network_transaction); |
55 | 55 |
56 ~DevToolsNetworkTransaction() override; | 56 ~DevToolsNetworkTransaction() override; |
57 | 57 |
58 // HttpTransaction methods: | 58 // HttpTransaction methods: |
59 int Start(const net::HttpRequestInfo* request, | 59 int Start(const net::HttpRequestInfo* request, |
60 const net::CompletionCallback& callback, | 60 const net::CompletionCallback& callback, |
61 const net::BoundNetLog& net_log) override; | 61 const net::NetLogWithSource& net_log) override; |
62 int RestartIgnoringLastError( | 62 int RestartIgnoringLastError( |
63 const net::CompletionCallback& callback) override; | 63 const net::CompletionCallback& callback) override; |
64 int RestartWithCertificate(net::X509Certificate* client_cert, | 64 int RestartWithCertificate(net::X509Certificate* client_cert, |
65 net::SSLPrivateKey* client_private_key, | 65 net::SSLPrivateKey* client_private_key, |
66 const net::CompletionCallback& callback) override; | 66 const net::CompletionCallback& callback) override; |
67 int RestartWithAuth(const net::AuthCredentials& credentials, | 67 int RestartWithAuth(const net::AuthCredentials& credentials, |
68 const net::CompletionCallback& callback) override; | 68 const net::CompletionCallback& callback) override; |
69 bool IsReadyToRestartForAuth() override; | 69 bool IsReadyToRestartForAuth() override; |
70 | 70 |
71 int Read(net::IOBuffer* buf, | 71 int Read(net::IOBuffer* buf, |
(...skipping 54 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 |