| Index: chrome/browser/devtools/devtools_adb_bridge.h
|
| diff --git a/chrome/browser/devtools/devtools_adb_bridge.h b/chrome/browser/devtools/devtools_adb_bridge.h
|
| index 222edf16e062c0950a115a2d042a4b25dbe2362d..ad59203fa07a2c6632f1af18879c44c5d7a8744e 100644
|
| --- a/chrome/browser/devtools/devtools_adb_bridge.h
|
| +++ b/chrome/browser/devtools/devtools_adb_bridge.h
|
| @@ -98,6 +98,11 @@ class DevToolsAdbBridge
|
| std::string global_id() { return global_id_; }
|
|
|
| void Inspect(Profile* profile);
|
| + void Close();
|
| + void Reload();
|
| +
|
| + void SendDebuggerCommand(const std::string& method,
|
| + const base::DictionaryValue* params);
|
|
|
| private:
|
| friend class base::RefCounted<RemotePage>;
|
| @@ -129,18 +134,28 @@ class DevToolsAdbBridge
|
| scoped_refptr<AndroidDevice> device() { return device_; }
|
| std::string socket() { return socket_; }
|
| std::string name() { return name_; }
|
| + std::string global_id() { return global_id_; }
|
|
|
| RemotePages& pages() { return pages_; }
|
| void AddPage(scoped_refptr<RemotePage> page) { pages_.push_back(page); }
|
|
|
| + void Open(const std::string& url);
|
| +
|
| private:
|
| friend class base::RefCounted<RemoteBrowser>;
|
| virtual ~RemoteBrowser();
|
|
|
| + void PageCreatedOnHandlerThread(
|
| + const std::string& url, int result, const std::string& response);
|
| +
|
| + void PageCreatedOnUIThread(
|
| + const std::string& response, const std::string& url);
|
| +
|
| scoped_refptr<DevToolsAdbBridge> bridge_;
|
| scoped_refptr<AndroidDevice> device_;
|
| const std::string socket_;
|
| const std::string name_;
|
| + std::string global_id_;
|
| RemotePages pages_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(RemoteBrowser);
|
| @@ -156,6 +171,7 @@ class DevToolsAdbBridge
|
| scoped_refptr<AndroidDevice> device() { return device_; }
|
| std::string serial() { return device_->serial(); }
|
| std::string model() { return device_->model(); }
|
| + std::string global_id() { return global_id_; }
|
|
|
| RemoteBrowsers& browsers() { return browsers_; }
|
| void AddBrowser(scoped_refptr<RemoteBrowser> browser) {
|
| @@ -168,6 +184,7 @@ class DevToolsAdbBridge
|
|
|
| scoped_refptr<DevToolsAdbBridge> bridge_;
|
| scoped_refptr<AndroidDevice> device_;
|
| + std::string global_id_;
|
| RemoteBrowsers browsers_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(RemoteDevice);
|
|
|