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

Side by Side Diff: chrome/browser/devtools/device/adb/adb_client_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_ADB_ADB_CLIENT_SOCKET_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_CLIENT_SOCKET_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_CLIENT_SOCKET_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_CLIENT_SOCKET_H_
7 7
8 #include <string>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "net/base/io_buffer.h" 12 #include "net/base/io_buffer.h"
11 #include "net/socket/stream_socket.h" 13 #include "net/socket/stream_socket.h"
12 14
13 class AdbClientSocket { 15 class AdbClientSocket {
14 public: 16 public:
15 typedef base::Callback<void(int, const std::string&)> CommandCallback; 17 typedef base::Callback<void(int, const std::string&)> CommandCallback;
16 typedef base::Callback<void(int result, std::unique_ptr<net::StreamSocket>)> 18 typedef base::Callback<void(int result, std::unique_ptr<net::StreamSocket>)>
17 SocketCallback; 19 SocketCallback;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 int bytes_left, 54 int bytes_left,
53 int result); 55 int result);
54 56
55 std::string host_; 57 std::string host_;
56 int port_; 58 int port_;
57 59
58 DISALLOW_COPY_AND_ASSIGN(AdbClientSocket); 60 DISALLOW_COPY_AND_ASSIGN(AdbClientSocket);
59 }; 61 };
60 62
61 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_CLIENT_SOCKET_H_ 63 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698