Index: content/child/websocket_bridge.h |
diff --git a/content/child/websocket_bridge.h b/content/child/websocket_bridge.h |
index ab5e3dca0194a4e84660f230330ed1985cbcc25c..dc96a86d43643f23560dd88030a5d1cd5bc9f073 100644 |
--- a/content/child/websocket_bridge.h |
+++ b/content/child/websocket_bridge.h |
@@ -10,6 +10,7 @@ |
#include <string> |
#include <vector> |
+#include "base/memory/shared_memory.h" |
#include "content/common/websocket.h" |
#include "ipc/ipc_message.h" |
#include "third_party/WebKit/public/platform/WebVector.h" |
@@ -48,7 +49,10 @@ class WebSocketBridge : public blink::WebSocketHandle { |
render_frame_id_ = id; |
} |
+ void loaderTestTransmit(LoaderTestIPC, bool verifyData, size_t bucketSize, size_t bufferSize, size_t totalSize, blink::WebCallbacks<int, void>*) override; |
+ |
private: |
+ class LoaderTestJob; |
~WebSocketBridge() override; |
void DidConnect(const std::string& selected_protocol, |
@@ -63,9 +67,14 @@ class WebSocketBridge : public blink::WebSocketHandle { |
void DidClose(bool was_clean, unsigned short code, const std::string& reason); |
void DidStartClosingHandshake(); |
+ void OnLoaderTransferTest_SetDataBuffer(base::SharedMemoryHandle); |
+ void OnLoaderTransferTest_ReceivedAck(); |
+ void OnLoaderTransferTest_Done(); |
+ |
int channel_id_; |
int render_frame_id_; |
blink::WebSocketHandleClient* client_; |
+ scoped_ptr<LoaderTestJob> loader_test_job_; |
static const int kInvalidChannelId = -1; |
}; |