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

Side by Side Diff: net/socket/socket.cc

Issue 2593063003: Add Socket::ReadIfReady() (Closed)
Patch Set: self review. remove unused include Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // 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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/socket/socket.h"
6
7 #include "net/base/net_errors.h"
8
9 namespace net {
10
11 const base::Feature Socket::kReadIfReadyExperiment{
12 "SocketReadIfReady", base::FEATURE_DISABLED_BY_DEFAULT};
13
14 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
15 int buf_len,
16 const CompletionCallback& callback) {
17 return ERR_READ_IF_READY_NOT_IMPLEMENTED;
18 }
19
20 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698