OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |