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; |
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 21 matching lines...) Expand all Loading... |
62 void ThrottleFinished() override; | 63 void ThrottleFinished() override; |
63 void GetSendEndTiming(base::TimeTicks* send_end) override; | 64 void GetSendEndTiming(base::TimeTicks* send_end) override; |
64 | 65 |
65 // HttpTransaction methods: | 66 // HttpTransaction methods: |
66 int Start(const net::HttpRequestInfo* request, | 67 int Start(const net::HttpRequestInfo* request, |
67 const net::CompletionCallback& callback, | 68 const net::CompletionCallback& callback, |
68 const net::BoundNetLog& net_log) override; | 69 const net::BoundNetLog& net_log) override; |
69 int RestartIgnoringLastError( | 70 int RestartIgnoringLastError( |
70 const net::CompletionCallback& callback) override; | 71 const net::CompletionCallback& callback) override; |
71 int RestartWithCertificate(net::X509Certificate* client_cert, | 72 int RestartWithCertificate(net::X509Certificate* client_cert, |
| 73 net::SSLPrivateKey* client_private_key, |
72 const net::CompletionCallback& callback) override; | 74 const net::CompletionCallback& callback) override; |
73 int RestartWithAuth(const net::AuthCredentials& credentials, | 75 int RestartWithAuth(const net::AuthCredentials& credentials, |
74 const net::CompletionCallback& callback) override; | 76 const net::CompletionCallback& callback) override; |
75 bool IsReadyToRestartForAuth() override; | 77 bool IsReadyToRestartForAuth() override; |
76 | 78 |
77 int Read(net::IOBuffer* buf, | 79 int Read(net::IOBuffer* buf, |
78 int buf_len, | 80 int buf_len, |
79 const net::CompletionCallback& callback) override; | 81 const net::CompletionCallback& callback) override; |
80 void StopCaching() override; | 82 void StopCaching() override; |
81 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; | 83 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 int throttled_result_; | 148 int throttled_result_; |
147 int64_t throttled_byte_count_; | 149 int64_t throttled_byte_count_; |
148 CallbackType callback_type_; | 150 CallbackType callback_type_; |
149 net::CompletionCallback proxy_callback_; | 151 net::CompletionCallback proxy_callback_; |
150 net::CompletionCallback callback_; | 152 net::CompletionCallback callback_; |
151 | 153 |
152 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); | 154 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); |
153 }; | 155 }; |
154 | 156 |
155 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 157 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
OLD | NEW |