| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 77 |
| 77 void FireThrottledCallback(); | 78 void FireThrottledCallback(); |
| 78 | 79 |
| 79 // HttpTransaction methods: | 80 // HttpTransaction methods: |
| 80 int Start(const net::HttpRequestInfo* request, | 81 int Start(const net::HttpRequestInfo* request, |
| 81 const net::CompletionCallback& callback, | 82 const net::CompletionCallback& callback, |
| 82 const net::BoundNetLog& net_log) override; | 83 const net::BoundNetLog& net_log) override; |
| 83 int RestartIgnoringLastError( | 84 int RestartIgnoringLastError( |
| 84 const net::CompletionCallback& callback) override; | 85 const net::CompletionCallback& callback) override; |
| 85 int RestartWithCertificate(net::X509Certificate* client_cert, | 86 int RestartWithCertificate(net::X509Certificate* client_cert, |
| 87 net::SSLPrivateKey* client_private_key, |
| 86 const net::CompletionCallback& callback) override; | 88 const net::CompletionCallback& callback) override; |
| 87 int RestartWithAuth(const net::AuthCredentials& credentials, | 89 int RestartWithAuth(const net::AuthCredentials& credentials, |
| 88 const net::CompletionCallback& callback) override; | 90 const net::CompletionCallback& callback) override; |
| 89 bool IsReadyToRestartForAuth() override; | 91 bool IsReadyToRestartForAuth() override; |
| 90 | 92 |
| 91 int Read(net::IOBuffer* buf, | 93 int Read(net::IOBuffer* buf, |
| 92 int buf_len, | 94 int buf_len, |
| 93 const net::CompletionCallback& callback) override; | 95 const net::CompletionCallback& callback) override; |
| 94 void StopCaching() override; | 96 void StopCaching() override; |
| 95 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; | 97 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 int throttled_result_; | 159 int throttled_result_; |
| 158 int64_t throttled_byte_count_; | 160 int64_t throttled_byte_count_; |
| 159 CallbackType callback_type_; | 161 CallbackType callback_type_; |
| 160 net::CompletionCallback proxy_callback_; | 162 net::CompletionCallback proxy_callback_; |
| 161 net::CompletionCallback callback_; | 163 net::CompletionCallback callback_; |
| 162 | 164 |
| 163 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); | 165 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); |
| 164 }; | 166 }; |
| 165 | 167 |
| 166 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 168 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
| OLD | NEW |