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

Side by Side Diff: chrome/browser/devtools/device/devtools_android_bridge.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, 4 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_DEVTOOLS_ANDROID_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void SendProtocolCommand(const std::string& debug_url, 114 void SendProtocolCommand(const std::string& debug_url,
115 const std::string& method, 115 const std::string& method,
116 base::DictionaryValue* params, 116 base::DictionaryValue* params,
117 const base::Closure callback); 117 const base::Closure callback);
118 118
119 void Open(const std::string& url, 119 void Open(const std::string& url,
120 const RemotePageCallback& callback); 120 const RemotePageCallback& callback);
121 121
122 scoped_refptr<content::DevToolsAgentHost> GetAgentHost(); 122 scoped_refptr<content::DevToolsAgentHost> GetAgentHost();
123 123
124 AndroidWebSocket* CreateWebSocket( 124 scoped_refptr<AndroidWebSocket> CreateWebSocket(
125 const std::string& url, 125 const std::string& url,
126 DevToolsAndroidBridge::AndroidWebSocket::Delegate* delegate); 126 DevToolsAndroidBridge::AndroidWebSocket::Delegate* delegate);
127 127
128 private: 128 private:
129 friend class base::RefCounted<RemoteBrowser>; 129 friend class base::RefCounted<RemoteBrowser>;
130 virtual ~RemoteBrowser(); 130 virtual ~RemoteBrowser();
131 131
132 void InnerOpen(const std::string& url, 132 void InnerOpen(const std::string& url,
133 const JsonRequestCallback& callback); 133 const JsonRequestCallback& callback);
134 134
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 typedef std::vector<DeviceCountListener*> DeviceCountListeners; 252 typedef std::vector<DeviceCountListener*> DeviceCountListeners;
253 DeviceCountListeners device_count_listeners_; 253 DeviceCountListeners device_count_listeners_;
254 base::CancelableCallback<void(int)> device_count_callback_; 254 base::CancelableCallback<void(int)> device_count_callback_;
255 base::Callback<void(const base::Closure&)> task_scheduler_; 255 base::Callback<void(const base::Closure&)> task_scheduler_;
256 256
257 PrefChangeRegistrar pref_change_registrar_; 257 PrefChangeRegistrar pref_change_registrar_;
258 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); 258 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge);
259 }; 259 };
260 260
261 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ 261 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/device/android_web_socket.cc ('k') | chrome/browser/devtools/device/devtools_android_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698