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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string>
11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
13 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
14 #include "chrome/browser/devtools/device/usb/android_usb_device.h" 16 #include "chrome/browser/devtools/device/usb/android_usb_device.h"
15 #include "net/base/ip_endpoint.h" 17 #include "net/base/ip_endpoint.h"
18 #include "net/log/net_log_with_source.h"
16 #include "net/socket/stream_socket.h" 19 #include "net/socket/stream_socket.h"
17 20
18 namespace base { 21 namespace base {
19 class MessageLoop; 22 class MessageLoop;
20 } 23 }
21 24
22 class AndroidUsbSocket : public net::StreamSocket, 25 class AndroidUsbSocket : public net::StreamSocket,
23 public base::NonThreadSafe { 26 public base::NonThreadSafe {
24 public: 27 public:
25 AndroidUsbSocket(scoped_refptr<AndroidUsbDevice> device, 28 AndroidUsbSocket(scoped_refptr<AndroidUsbDevice> device,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 net::CompletionCallback connect_callback_; 80 net::CompletionCallback connect_callback_;
78 net::CompletionCallback read_callback_; 81 net::CompletionCallback read_callback_;
79 net::CompletionCallback write_callback_; 82 net::CompletionCallback write_callback_;
80 base::Closure delete_callback_; 83 base::Closure delete_callback_;
81 base::WeakPtrFactory<AndroidUsbSocket> weak_factory_; 84 base::WeakPtrFactory<AndroidUsbSocket> weak_factory_;
82 85
83 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket); 86 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket);
84 }; 87 };
85 88
86 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ 89 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698