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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 10 matching lines...) Expand all Loading... | |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 class AuthCredentials; | 23 class AuthCredentials; |
24 class BoundNetLog; | 24 class BoundNetLog; |
25 class HttpRequestHeaders; | 25 class HttpRequestHeaders; |
26 struct HttpRequestInfo; | 26 struct HttpRequestInfo; |
27 class HttpResponseInfo; | 27 class HttpResponseInfo; |
28 class HttpNetworkSession; | 28 class HttpNetworkSession; |
29 class IOBuffer; | 29 class IOBuffer; |
30 struct LoadTimingInfo; | 30 struct LoadTimingInfo; |
31 class SSLPrivateKey; | |
dgozman
2015/11/19 18:49:07
This should be already included in http_transactio
| |
31 class UploadProgress; | 32 class UploadProgress; |
32 class X509Certificate; | 33 class X509Certificate; |
33 } // namespace net | 34 } // namespace net |
34 | 35 |
35 namespace test { | 36 namespace test { |
36 class DevToolsNetworkControllerHelper; | 37 class DevToolsNetworkControllerHelper; |
37 } | 38 } |
38 | 39 |
39 // DevToolsNetworkTransaction is a wrapper for network transaction. All | 40 // DevToolsNetworkTransaction is a wrapper for network transaction. All |
40 // HttpTransaction methods are proxied to real transaction, but |callback| | 41 // HttpTransaction methods are proxied to real transaction, but |callback| |
(...skipping 19 matching lines...) Expand all Loading... | |
60 void ThrottleFinished() override; | 61 void ThrottleFinished() override; |
61 void GetSendEndTiming(base::TimeTicks* send_end) override; | 62 void GetSendEndTiming(base::TimeTicks* send_end) override; |
62 | 63 |
63 // HttpTransaction methods: | 64 // HttpTransaction methods: |
64 int Start(const net::HttpRequestInfo* request, | 65 int Start(const net::HttpRequestInfo* request, |
65 const net::CompletionCallback& callback, | 66 const net::CompletionCallback& callback, |
66 const net::BoundNetLog& net_log) override; | 67 const net::BoundNetLog& net_log) override; |
67 int RestartIgnoringLastError( | 68 int RestartIgnoringLastError( |
68 const net::CompletionCallback& callback) override; | 69 const net::CompletionCallback& callback) override; |
69 int RestartWithCertificate(net::X509Certificate* client_cert, | 70 int RestartWithCertificate(net::X509Certificate* client_cert, |
71 net::SSLPrivateKey* client_private_key, | |
70 const net::CompletionCallback& callback) override; | 72 const net::CompletionCallback& callback) override; |
71 int RestartWithAuth(const net::AuthCredentials& credentials, | 73 int RestartWithAuth(const net::AuthCredentials& credentials, |
72 const net::CompletionCallback& callback) override; | 74 const net::CompletionCallback& callback) override; |
73 bool IsReadyToRestartForAuth() override; | 75 bool IsReadyToRestartForAuth() override; |
74 | 76 |
75 int Read(net::IOBuffer* buf, | 77 int Read(net::IOBuffer* buf, |
76 int buf_len, | 78 int buf_len, |
77 const net::CompletionCallback& callback) override; | 79 const net::CompletionCallback& callback) override; |
78 void StopCaching() override; | 80 void StopCaching() override; |
79 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; | 81 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
144 int throttled_result_; | 146 int throttled_result_; |
145 int64_t throttled_byte_count_; | 147 int64_t throttled_byte_count_; |
146 CallbackType callback_type_; | 148 CallbackType callback_type_; |
147 net::CompletionCallback proxy_callback_; | 149 net::CompletionCallback proxy_callback_; |
148 net::CompletionCallback callback_; | 150 net::CompletionCallback callback_; |
149 | 151 |
150 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); | 152 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); |
151 }; | 153 }; |
152 | 154 |
153 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 155 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
OLD | NEW |