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

Unified Diff: webkit/plugins/ppapi/ppb_websocket_impl.h

Issue 8748002: WebSocket Pepper API: GetBufferedAmount() implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use namespace Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/tests/test_websocket.cc ('k') | webkit/plugins/ppapi/ppb_websocket_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_websocket_impl.h
diff --git a/webkit/plugins/ppapi/ppb_websocket_impl.h b/webkit/plugins/ppapi/ppb_websocket_impl.h
index 672ba52aea7f289387fe842acd6c2f73e286b886..f1f73c23a43876f93438c12c2e97ee57371f2c6a 100644
--- a/webkit/plugins/ppapi/ppb_websocket_impl.h
+++ b/webkit/plugins/ppapi/ppb_websocket_impl.h
@@ -66,9 +66,9 @@ class PPB_WebSocket_Impl : public ::ppapi::Resource,
const WebKit::WebData& binaryData) OVERRIDE;
virtual void didReceiveMessageError() OVERRIDE;
// TODO(toyoshim): Add OVERRIDE after landing WebKit side change.
- virtual void didUpdateBufferedAmount(unsigned long bufferedAmount);
+ virtual void didUpdateBufferedAmount(unsigned long buffered_amount);
virtual void didStartClosingHandshake() OVERRIDE;
- virtual void didClose(unsigned long bufferedAmount,
+ virtual void didClose(unsigned long buffered_amount,
ClosingHandshakeCompletionStatus status,
unsigned short code,
const WebKit::WebString& reason) OVERRIDE;
@@ -96,6 +96,9 @@ class PPB_WebSocket_Impl : public ::ppapi::Resource,
scoped_refptr< ::ppapi::StringVar> protocol_;
scoped_refptr< ::ppapi::StringVar> url_;
+ uint64_t buffered_amount_;
+ uint64_t buffered_amount_after_close_;
+
DISALLOW_COPY_AND_ASSIGN(PPB_WebSocket_Impl);
};
« no previous file with comments | « ppapi/tests/test_websocket.cc ('k') | webkit/plugins/ppapi/ppb_websocket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698