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

Side by Side Diff: chrome/browser/devtools/device/adb/adb_client_socket.h

Issue 505783002: Revert of DevTools: Removed refcounting from AndroidWebSocket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | chrome/browser/devtools/device/adb/adb_client_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/callback.h" 8 #include "base/callback.h"
9 #include "net/base/io_buffer.h" 9 #include "net/base/io_buffer.h"
10 #include "net/socket/stream_socket.h" 10 #include "net/socket/stream_socket.h"
11 11
12 class AdbClientSocket { 12 class AdbClientSocket {
13 public: 13 public:
14 typedef base::Callback<void(int, const std::string&)> CommandCallback; 14 typedef base::Callback<void(int, const std::string&)> CommandCallback;
15 typedef base::Callback<void(int result, 15 typedef base::Callback<void(int result,
16 scoped_ptr<net::StreamSocket>)> SocketCallback; 16 net::StreamSocket*)> SocketCallback;
17 17
18 static void AdbQuery(int port, 18 static void AdbQuery(int port,
19 const std::string& query, 19 const std::string& query,
20 const CommandCallback& callback); 20 const CommandCallback& callback);
21 21
22 22
23 static void TransportQuery(int port, 23 static void TransportQuery(int port,
24 const std::string& serial, 24 const std::string& serial,
25 const std::string& socket_name, 25 const std::string& socket_name,
26 const SocketCallback& callback); 26 const SocketCallback& callback);
(...skipping 24 matching lines...) Expand all
51 int bytes_left, 51 int bytes_left,
52 int result); 52 int result);
53 53
54 std::string host_; 54 std::string host_;
55 int port_; 55 int port_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(AdbClientSocket); 57 DISALLOW_COPY_AND_ASSIGN(AdbClientSocket);
58 }; 58 };
59 59
60 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_CLIENT_SOCKET_H_ 60 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/device/adb/adb_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698