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

Unified Diff: chrome/test/chromedriver/chrome/devtools_http_client.h

Issue 288193004: [Chromedriver] Add Device Metrics override support to ChromeDriver via Capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
Index: chrome/test/chromedriver/chrome/devtools_http_client.h
diff --git a/chrome/test/chromedriver/chrome/devtools_http_client.h b/chrome/test/chromedriver/chrome/devtools_http_client.h
index 693f0c03bcbe44286244f15e25e8cf90a7fd88ee..1e1c5ebd81a67c212979dfa7bea5cdf943978f51 100644
--- a/chrome/test/chromedriver/chrome/devtools_http_client.h
+++ b/chrome/test/chromedriver/chrome/devtools_http_client.h
@@ -17,6 +17,7 @@ namespace base {
class TimeDelta;
}
+struct DeviceMetrics;
class DevToolsClient;
class NetAddress;
class Status;
@@ -64,7 +65,8 @@ class DevToolsHttpClient {
DevToolsHttpClient(
const NetAddress& address,
scoped_refptr<URLRequestContextGetter> context_getter,
- const SyncWebSocketFactory& socket_factory);
+ const SyncWebSocketFactory& socket_factory,
+ scoped_ptr<DeviceMetrics> device_metrics);
~DevToolsHttpClient();
Status Init(const base::TimeDelta& timeout);
@@ -78,6 +80,7 @@ class DevToolsHttpClient {
Status ActivateWebView(const std::string& id);
const BrowserInfo* browser_info();
+ const DeviceMetrics* device_metrics();
private:
Status GetVersion(std::string* browser_version, std::string* blink_version);
@@ -91,6 +94,7 @@ class DevToolsHttpClient {
std::string server_url_;
std::string web_socket_url_prefix_;
BrowserInfo browser_info_;
+ scoped_ptr<DeviceMetrics> device_metrics_;
DISALLOW_COPY_AND_ASSIGN(DevToolsHttpClient);
};

Powered by Google App Engine
This is Rietveld 408576698