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