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

Side by Side Diff: net/websockets/websocket_basic_handshake_stream.h

Issue 1314783007: Added and implemented HttpStream::GetTotalSentBytes for basic streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed mmenke comments 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ 6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
14 #include "net/http/http_basic_state.h" 16 #include "net/http/http_basic_state.h"
15 #include "net/websockets/websocket_handshake_stream_base.h" 17 #include "net/websockets/websocket_handshake_stream_base.h"
16 #include "url/gurl.h" 18 #include "url/gurl.h"
17 19
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 int ReadResponseBody(IOBuffer* buf, 52 int ReadResponseBody(IOBuffer* buf,
51 int buf_len, 53 int buf_len,
52 const CompletionCallback& callback) override; 54 const CompletionCallback& callback) override;
53 void Close(bool not_reusable) override; 55 void Close(bool not_reusable) override;
54 bool IsResponseBodyComplete() const override; 56 bool IsResponseBodyComplete() const override;
55 bool CanFindEndOfResponse() const override; 57 bool CanFindEndOfResponse() const override;
56 bool IsConnectionReused() const override; 58 bool IsConnectionReused() const override;
57 void SetConnectionReused() override; 59 void SetConnectionReused() override;
58 bool IsConnectionReusable() const override; 60 bool IsConnectionReusable() const override;
59 int64 GetTotalReceivedBytes() const override; 61 int64 GetTotalReceivedBytes() const override;
62 int64_t GetTotalSentBytes() const override;
60 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 63 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
61 void GetSSLInfo(SSLInfo* ssl_info) override; 64 void GetSSLInfo(SSLInfo* ssl_info) override;
62 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 65 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
63 bool IsSpdyHttpStream() const override; 66 bool IsSpdyHttpStream() const override;
64 void Drain(HttpNetworkSession* session) override; 67 void Drain(HttpNetworkSession* session) override;
65 void SetPriority(RequestPriority priority) override; 68 void SetPriority(RequestPriority priority) override;
66 UploadProgress GetUploadProgress() const override; 69 UploadProgress GetUploadProgress() const override;
67 HttpStream* RenewStreamForAuth() override; 70 HttpStream* RenewStreamForAuth() override;
68 71
69 72
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 scoped_ptr<WebSocketExtensionParams> extension_params_; 137 scoped_ptr<WebSocketExtensionParams> extension_params_;
135 138
136 std::string* failure_message_; 139 std::string* failure_message_;
137 140
138 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); 141 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream);
139 }; 142 };
140 143
141 } // namespace net 144 } // namespace net
142 145
143 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ 146 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698