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

Unified Diff: content/child/websocket_bridge.h

Issue 1461283002: [DO NOT COMMIT] mojo datapipe performance measurement Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/websocket_host.cc ('k') | content/child/websocket_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « content/browser/renderer_host/websocket_host.cc ('k') | content/child/websocket_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698