Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: chrome/browser/devtools/devtools_network_transaction.h

Issue 1327763003: Added and implemented URLRequest::GetTotalSentBytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spdy_sent_bytes_impl
Patch Set: Addressed nits Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698