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

Unified Diff: chrome/browser/devtools/devtools_adb_bridge.h

Issue 22277007: chrome://inspect: Add "open", "close" and "reload" actions to Devices tab (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/devtools/adb_web_socket.cc ('k') | chrome/browser/devtools/devtools_adb_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..cfd348242ea4cecc3c7615bba4075f9fc07ea450 100644
--- a/chrome/browser/devtools/devtools_adb_bridge.h
+++ b/chrome/browser/devtools/devtools_adb_bridge.h
@@ -95,9 +95,14 @@ class DevToolsAdbBridge
std::string title() { return title_; }
std::string description() { return description_; }
std::string favicon_url() { return favicon_url_; }
- std::string global_id() { return global_id_; }
+ bool attached() { return debug_url_.empty(); }
void Inspect(Profile* profile);
+ void Close();
+ void Reload();
+
+ void SendProtocolCommand(const std::string& method,
+ base::DictionaryValue* params);
private:
friend class base::RefCounted<RemotePage>;
@@ -113,7 +118,6 @@ class DevToolsAdbBridge
std::string favicon_url_;
std::string debug_url_;
std::string frontend_url_;
- std::string global_id_;
DISALLOW_COPY_AND_ASSIGN(RemotePage);
};
@@ -133,10 +137,18 @@ class DevToolsAdbBridge
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_;
@@ -183,12 +195,12 @@ class DevToolsAdbBridge
const CommandCallback& callback) = 0;
virtual void OpenSocket(const std::string& socket_name,
const SocketCallback& callback) = 0;
- virtual void HttpQuery(const std::string& la_name,
- const std::string& request,
- const CommandCallback& callback);
- virtual void HttpQuery(const std::string& la_name,
- const std::string& request,
- const SocketCallback& callback);
+ void HttpQuery(const std::string& la_name,
+ const std::string& request,
+ const CommandCallback& callback);
+ void HttpUpgrade(const std::string& la_name,
+ const std::string& request,
+ const SocketCallback& callback);
std::string serial() { return serial_; }
« no previous file with comments | « chrome/browser/devtools/adb_web_socket.cc ('k') | chrome/browser/devtools/devtools_adb_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698