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

Side by Side Diff: chrome/browser/devtools/device/usb/android_usb_socket.cc

Issue 1821633003: net: remove UsingTCPFastOpen() method from StreamSocket class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove use_tcp_fastopen_ from transport_client_socket_pool_test_util.cc Created 4 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/devtools/device/usb/android_usb_socket.h" 5 #include "chrome/browser/devtools/device/usb/android_usb_socket.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 void AndroidUsbSocket::SetOmniboxSpeculation() { 212 void AndroidUsbSocket::SetOmniboxSpeculation() {
213 NOTIMPLEMENTED(); 213 NOTIMPLEMENTED();
214 } 214 }
215 215
216 bool AndroidUsbSocket::WasEverUsed() const { 216 bool AndroidUsbSocket::WasEverUsed() const {
217 NOTIMPLEMENTED(); 217 NOTIMPLEMENTED();
218 return true; 218 return true;
219 } 219 }
220 220
221 bool AndroidUsbSocket::UsingTCPFastOpen() const {
222 NOTIMPLEMENTED();
223 return true;
224 }
225
226 bool AndroidUsbSocket::WasNpnNegotiated() const { 221 bool AndroidUsbSocket::WasNpnNegotiated() const {
227 NOTIMPLEMENTED(); 222 NOTIMPLEMENTED();
228 return true; 223 return true;
229 } 224 }
230 225
231 net::NextProto AndroidUsbSocket::GetNegotiatedProtocol() const { 226 net::NextProto AndroidUsbSocket::GetNegotiatedProtocol() const {
232 NOTIMPLEMENTED(); 227 NOTIMPLEMENTED();
233 return net::kProtoUnknown; 228 return net::kProtoUnknown;
234 } 229 }
235 230
(...skipping 22 matching lines...) Expand all
258 read_buffer_ = read_buffer_.substr(bytes_to_copy); 253 read_buffer_ = read_buffer_.substr(bytes_to_copy);
259 else 254 else
260 read_buffer_ = std::string(); 255 read_buffer_ = std::string();
261 base::ResetAndReturn(&read_callback_).Run(bytes_to_copy); 256 base::ResetAndReturn(&read_callback_).Run(bytes_to_copy);
262 } 257 }
263 258
264 void AndroidUsbSocket::RespondToWriter(int result) { 259 void AndroidUsbSocket::RespondToWriter(int result) {
265 if (!write_callback_.is_null()) 260 if (!write_callback_.is_null())
266 base::ResetAndReturn(&write_callback_).Run(result); 261 base::ResetAndReturn(&write_callback_).Run(result);
267 } 262 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/device/usb/android_usb_socket.h ('k') | content/browser/renderer_host/p2p/socket_host_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698