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

Side by Side Diff: chrome/browser/devtools/device/devtools_android_bridge.h

Issue 912863002: [DevTools] Remote JSON requests from javascript (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 DevToolsTargetImpl* CreatePageTarget(scoped_refptr<RemotePage> browser); 216 DevToolsTargetImpl* CreatePageTarget(scoped_refptr<RemotePage> browser);
217 217
218 typedef base::Callback<void(scoped_refptr<RemotePage>)> RemotePageCallback; 218 typedef base::Callback<void(scoped_refptr<RemotePage>)> RemotePageCallback;
219 void OpenRemotePage(scoped_refptr<RemoteBrowser> browser, 219 void OpenRemotePage(scoped_refptr<RemoteBrowser> browser,
220 const std::string& url, 220 const std::string& url,
221 const RemotePageCallback& callback); 221 const RemotePageCallback& callback);
222 222
223 scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost( 223 scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost(
224 scoped_refptr<RemoteBrowser> browser); 224 scoped_refptr<RemoteBrowser> browser);
225 225
226 void SendJsonRequest(const std::string& browser_id_str,
227 const std::string& url,
228 const JsonRequestCallback& callback);
229
226 private: 230 private:
227 friend struct content::BrowserThread::DeleteOnThread< 231 friend struct content::BrowserThread::DeleteOnThread<
228 content::BrowserThread::UI>; 232 content::BrowserThread::UI>;
229 friend class base::DeleteHelper<DevToolsAndroidBridge>; 233 friend class base::DeleteHelper<DevToolsAndroidBridge>;
230 234
231 friend class PortForwardingController; 235 friend class PortForwardingController;
232 236
233 class AgentHostDelegate; 237 class AgentHostDelegate;
234 class DiscoveryRequest; 238 class DiscoveryRequest;
235 class RemotePageTarget; 239 class RemotePageTarget;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 scoped_ptr<PortForwardingController> port_forwarding_controller_; 321 scoped_ptr<PortForwardingController> port_forwarding_controller_;
318 322
319 PrefChangeRegistrar pref_change_registrar_; 323 PrefChangeRegistrar pref_change_registrar_;
320 324
321 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_; 325 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_;
322 326
323 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); 327 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge);
324 }; 328 };
325 329
326 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ 330 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698