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> |
| 9 |
8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
10 #include "net/base/completion_callback.h" | 12 #include "net/base/completion_callback.h" |
11 #include "net/base/load_states.h" | 13 #include "net/base/load_states.h" |
12 #include "net/base/request_priority.h" | 14 #include "net/base/request_priority.h" |
13 #include "net/http/http_transaction.h" | 15 #include "net/http/http_transaction.h" |
14 #include "net/websockets/websocket_handshake_stream_base.h" | 16 #include "net/websockets/websocket_handshake_stream_base.h" |
15 | 17 |
16 class DevToolsNetworkController; | 18 class DevToolsNetworkController; |
17 class DevToolsNetworkInterceptor; | 19 class DevToolsNetworkInterceptor; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 int RestartWithAuth(const net::AuthCredentials& credentials, | 87 int RestartWithAuth(const net::AuthCredentials& credentials, |
86 const net::CompletionCallback& callback) override; | 88 const net::CompletionCallback& callback) override; |
87 bool IsReadyToRestartForAuth() override; | 89 bool IsReadyToRestartForAuth() override; |
88 | 90 |
89 int Read(net::IOBuffer* buf, | 91 int Read(net::IOBuffer* buf, |
90 int buf_len, | 92 int buf_len, |
91 const net::CompletionCallback& callback) override; | 93 const net::CompletionCallback& callback) override; |
92 void StopCaching() override; | 94 void StopCaching() override; |
93 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; | 95 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; |
94 int64 GetTotalReceivedBytes() const override; | 96 int64 GetTotalReceivedBytes() const override; |
| 97 int64_t GetTotalSentBytes() const override; |
95 void DoneReading() override; | 98 void DoneReading() override; |
96 const net::HttpResponseInfo* GetResponseInfo() const override; | 99 const net::HttpResponseInfo* GetResponseInfo() const override; |
97 net::LoadState GetLoadState() const override; | 100 net::LoadState GetLoadState() const override; |
98 net::UploadProgress GetUploadProgress() const override; | 101 net::UploadProgress GetUploadProgress() const override; |
99 void SetQuicServerInfo(net::QuicServerInfo* quic_server_info) override; | 102 void SetQuicServerInfo(net::QuicServerInfo* quic_server_info) override; |
100 bool GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; | 103 bool GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; |
101 void SetPriority(net::RequestPriority priority) override; | 104 void SetPriority(net::RequestPriority priority) override; |
102 void SetWebSocketHandshakeStreamCreateHelper( | 105 void SetWebSocketHandshakeStreamCreateHelper( |
103 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) override; | 106 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) override; |
104 void SetBeforeNetworkStartCallback( | 107 void SetBeforeNetworkStartCallback( |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 int throttled_result_; | 157 int throttled_result_; |
155 int64_t throttled_byte_count_; | 158 int64_t throttled_byte_count_; |
156 CallbackType callback_type_; | 159 CallbackType callback_type_; |
157 net::CompletionCallback proxy_callback_; | 160 net::CompletionCallback proxy_callback_; |
158 net::CompletionCallback callback_; | 161 net::CompletionCallback callback_; |
159 | 162 |
160 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); | 163 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); |
161 }; | 164 }; |
162 | 165 |
163 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 166 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
OLD | NEW |