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

Unified Diff: headless/public/headless_browser.h

Issue 2720673003: [headless] Use version for product name and user agent. (Closed)
Patch Set: use headless/public/version.h instead. Created 3 years, 10 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 | « headless/lib/headless_content_client.cc ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_browser.h
diff --git a/headless/public/headless_browser.h b/headless/public/headless_browser.h
index 99974942f7334d4a5b4776d8e66cb7e69aa0a255..4b18f565b9e8fc2f2b8cb91ad0bb885a26a8a64e 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -128,6 +128,7 @@ struct HeadlessBrowser::Options {
// Default per-context options, can be specialized on per-context basis.
+ std::string product_name_and_version;
std::string user_agent;
// Address of the HTTP/HTTPS proxy server to use. The system proxy settings
@@ -188,6 +189,8 @@ class HeadlessBrowser::Options::Builder {
// Per-context settings.
+ Builder& SetProductNameAndVersion(
+ const std::string& product_name_and_version);
Builder& SetUserAgent(const std::string& user_agent);
Builder& SetProxyServer(const net::HostPortPair& proxy_server);
Builder& SetHostResolverRules(const std::string& host_resolver_rules);
« no previous file with comments | « headless/lib/headless_content_client.cc ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698