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

Unified Diff: net/socket/socket.cc

Issue 2593063003: Add Socket::ReadIfReady() (Closed)
Patch Set: self review. remove unused include Created 3 years, 10 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
Index: net/socket/socket.cc
diff --git a/net/socket/socket.cc b/net/socket/socket.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b46abec2999cf6317dc3b53a8689e89712075b1a
--- /dev/null
+++ b/net/socket/socket.cc
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
Bence 2017/03/03 16:33:40 It seems to me that this patch was created already
xunjieli 2017/03/03 19:41:05 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/socket/socket.h"
+
+#include "net/base/net_errors.h"
+
+namespace net {
+
+const base::Feature Socket::kReadIfReadyExperiment{
+ "SocketReadIfReady", base::FEATURE_DISABLED_BY_DEFAULT};
+
+int Socket::ReadIfReady(IOBuffer* buf,
Bence 2017/03/03 16:33:40 Every other method in this class is pure virtual.
xunjieli 2017/03/03 19:41:05 No, we are keeping the default implementation. I d
Bence 2017/03/06 23:43:14 No for inlining. I believe Chromium enforces that
+ int buf_len,
+ const CompletionCallback& callback) {
+ return ERR_READ_IF_READY_NOT_IMPLEMENTED;
+}
+
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698