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

Unified Diff: mojo/services/network/public/cpp/web_socket_read_queue.h

Issue 1281073003: Avoid using two-phase read with MOJO_READ_DATA_FLAG_ALL_OR_NONE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | mojo/services/network/public/cpp/web_socket_read_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/public/cpp/web_socket_read_queue.h
diff --git a/mojo/services/network/public/cpp/web_socket_read_queue.h b/mojo/services/network/public/cpp/web_socket_read_queue.h
index 5ba5fa576fa9e421a15db6fb7d33cc0f1317f1d2..b270892e397cf915d7a59a380262941a7c4f92cc 100644
--- a/mojo/services/network/public/cpp/web_socket_read_queue.h
+++ b/mojo/services/network/public/cpp/web_socket_read_queue.h
@@ -23,7 +23,8 @@ class WebSocketReadQueue {
explicit WebSocketReadQueue(DataPipeConsumerHandle handle);
~WebSocketReadQueue();
- void Read(uint32_t num_bytes, base::Callback<void(const char*)> callback);
+ void Read(uint32_t num_bytes,
+ const base::Callback<void(const char*)>& callback);
private:
struct Operation;
« no previous file with comments | « no previous file | mojo/services/network/public/cpp/web_socket_read_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698