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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 3 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 int AndroidUsbSocket::GetPeerAddress(net::IPEndPoint* address) const { 194 int AndroidUsbSocket::GetPeerAddress(net::IPEndPoint* address) const {
195 *address = net::IPEndPoint(net::IPAddress(0, 0, 0, 0), 0); 195 *address = net::IPEndPoint(net::IPAddress(0, 0, 0, 0), 0);
196 return net::OK; 196 return net::OK;
197 } 197 }
198 198
199 int AndroidUsbSocket::GetLocalAddress(net::IPEndPoint* address) const { 199 int AndroidUsbSocket::GetLocalAddress(net::IPEndPoint* address) const {
200 NOTIMPLEMENTED(); 200 NOTIMPLEMENTED();
201 return net::ERR_NOT_IMPLEMENTED; 201 return net::ERR_NOT_IMPLEMENTED;
202 } 202 }
203 203
204 const net::BoundNetLog& AndroidUsbSocket::NetLog() const { 204 const net::NetLogWithSource& AndroidUsbSocket::NetLog() const {
205 return net_log_; 205 return net_log_;
206 } 206 }
207 207
208 void AndroidUsbSocket::SetSubresourceSpeculation() { 208 void AndroidUsbSocket::SetSubresourceSpeculation() {
209 NOTIMPLEMENTED(); 209 NOTIMPLEMENTED();
210 } 210 }
211 211
212 void AndroidUsbSocket::SetOmniboxSpeculation() { 212 void AndroidUsbSocket::SetOmniboxSpeculation() {
213 NOTIMPLEMENTED(); 213 NOTIMPLEMENTED();
214 } 214 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 read_buffer_ = read_buffer_.substr(bytes_to_copy); 253 read_buffer_ = read_buffer_.substr(bytes_to_copy);
254 else 254 else
255 read_buffer_ = std::string(); 255 read_buffer_ = std::string();
256 base::ResetAndReturn(&read_callback_).Run(bytes_to_copy); 256 base::ResetAndReturn(&read_callback_).Run(bytes_to_copy);
257 } 257 }
258 258
259 void AndroidUsbSocket::RespondToWriter(int result) { 259 void AndroidUsbSocket::RespondToWriter(int result) {
260 if (!write_callback_.is_null()) 260 if (!write_callback_.is_null())
261 base::ResetAndReturn(&write_callback_).Run(result); 261 base::ResetAndReturn(&write_callback_).Run(result);
262 } 262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698