| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void SetQuicServerInfo(net::QuicServerInfo* quic_server_info) override; | 99 void SetQuicServerInfo(net::QuicServerInfo* quic_server_info) override; |
| 100 bool GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; | 100 bool GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; |
| 101 void SetPriority(net::RequestPriority priority) override; | 101 void SetPriority(net::RequestPriority priority) override; |
| 102 void SetWebSocketHandshakeStreamCreateHelper( | 102 void SetWebSocketHandshakeStreamCreateHelper( |
| 103 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) override; | 103 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) override; |
| 104 void SetBeforeNetworkStartCallback( | 104 void SetBeforeNetworkStartCallback( |
| 105 const BeforeNetworkStartCallback& callback) override; | 105 const BeforeNetworkStartCallback& callback) override; |
| 106 void SetBeforeProxyHeadersSentCallback( | 106 void SetBeforeProxyHeadersSentCallback( |
| 107 const BeforeProxyHeadersSentCallback& callback) override; | 107 const BeforeProxyHeadersSentCallback& callback) override; |
| 108 int ResumeNetworkStart() override; | 108 int ResumeNetworkStart() override; |
| 109 void GetConnectionAttempts(net::ConnectionAttempts* out) const override; |
| 109 | 110 |
| 110 protected: | 111 protected: |
| 111 friend class test::DevToolsNetworkControllerHelper; | 112 friend class test::DevToolsNetworkControllerHelper; |
| 112 | 113 |
| 113 private: | 114 private: |
| 114 // Proxy callback handler. Runs saved callback. | 115 // Proxy callback handler. Runs saved callback. |
| 115 void OnCallback(int result); | 116 void OnCallback(int result); |
| 116 | 117 |
| 117 DevToolsNetworkController* controller_; | 118 DevToolsNetworkController* controller_; |
| 118 base::WeakPtr<DevToolsNetworkInterceptor> interceptor_; | 119 base::WeakPtr<DevToolsNetworkInterceptor> interceptor_; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 int throttled_result_; | 154 int throttled_result_; |
| 154 int64_t throttled_byte_count_; | 155 int64_t throttled_byte_count_; |
| 155 CallbackType callback_type_; | 156 CallbackType callback_type_; |
| 156 net::CompletionCallback proxy_callback_; | 157 net::CompletionCallback proxy_callback_; |
| 157 net::CompletionCallback callback_; | 158 net::CompletionCallback callback_; |
| 158 | 159 |
| 159 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); | 160 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 163 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
| OLD | NEW |