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 #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 "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
10 #include "net/socket/stream_socket.h" | 11 #include "net/socket/stream_socket.h" |
11 | 12 |
12 class AdbClientSocket { | 13 class AdbClientSocket { |
13 public: | 14 public: |
14 typedef base::Callback<void(int, const std::string&)> CommandCallback; | 15 typedef base::Callback<void(int, const std::string&)> CommandCallback; |
15 typedef base::Callback<void(int result, | 16 typedef base::Callback<void(int result, |
16 scoped_ptr<net::StreamSocket>)> SocketCallback; | 17 scoped_ptr<net::StreamSocket>)> SocketCallback; |
17 | 18 |
18 static void AdbQuery(int port, | 19 static void AdbQuery(int port, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int bytes_left, | 52 int bytes_left, |
52 int result); | 53 int result); |
53 | 54 |
54 std::string host_; | 55 std::string host_; |
55 int port_; | 56 int port_; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(AdbClientSocket); | 58 DISALLOW_COPY_AND_ASSIGN(AdbClientSocket); |
58 }; | 59 }; |
59 | 60 |
60 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_CLIENT_SOCKET_H_ | 61 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_CLIENT_SOCKET_H_ |
OLD | NEW |