summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authortbansal <tbansal@chromium.org>2015-10-14 13:05:49 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-14 20:06:22 +0000
commitf82cc8ee24bbeb7b27c57874dfe787a5c10c47a1 (patch)
tree08092f6e17e98cd146c2e9b80078310d2d641233 /remoting
parent52714f745469ba255297d0144775535cbecdcb93 (diff)
downloadchromium_src-f82cc8ee24bbeb7b27c57874dfe787a5c10c47a1.zip
chromium_src-f82cc8ee24bbeb7b27c57874dfe787a5c10c47a1.tar.gz
chromium_src-f82cc8ee24bbeb7b27c57874dfe787a5c10c47a1.tar.bz2
Implement GetTotalReceivedBytes() for StreamSocket
GetTotalReceivedBytes() returns the number of bytes read from the network. Currently, only TCPClientSocket implements GetTotalReceivedBytes(). Tests are in ssl_client_socket_unittest.cc. Right now GetTotalReceivedBytes() is not plumbed to the higher layers. Once that's done, this will help us in precisely computing the network bytes used by a request. BUG=537754 Review URL: https://codereview.chromium.org/1343563002 Cr-Commit-Position: refs/heads/master@{#354092}
Diffstat (limited to 'remoting')
-rw-r--r--remoting/protocol/ssl_hmac_channel_authenticator.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.cc b/remoting/protocol/ssl_hmac_channel_authenticator.cc
index 367b95b..e994e29 100644
--- a/remoting/protocol/ssl_hmac_channel_authenticator.cc
+++ b/remoting/protocol/ssl_hmac_channel_authenticator.cc
@@ -132,6 +132,10 @@ class NetStreamSocketAdapter : public net::StreamSocket {
void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override {
NOTREACHED();
}
+ int64_t GetTotalReceivedBytes() const override {
+ NOTIMPLEMENTED();
+ return 0;
+ }
private:
scoped_ptr<P2PStreamSocket> socket_;