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

Side by Side Diff: headless/lib/browser/headless_browser_context_options.h

Issue 2777783002: Remove user agent from HeadlessBrowserContextOptions. (Closed)
Patch Set: Remove --user-agent flag Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 override_web_preferences_callback() const; 55 override_web_preferences_callback() const;
56 56
57 private: 57 private:
58 friend class HeadlessBrowserContext::Builder; 58 friend class HeadlessBrowserContext::Builder;
59 59
60 explicit HeadlessBrowserContextOptions(HeadlessBrowser::Options*); 60 explicit HeadlessBrowserContextOptions(HeadlessBrowser::Options*);
61 61
62 HeadlessBrowser::Options* browser_options_; 62 HeadlessBrowser::Options* browser_options_;
63 63
64 base::Optional<std::string> product_name_and_version_; 64 base::Optional<std::string> product_name_and_version_;
65 base::Optional<std::string> user_agent_;
66 base::Optional<net::HostPortPair> proxy_server_; 65 base::Optional<net::HostPortPair> proxy_server_;
67 base::Optional<std::string> host_resolver_rules_; 66 base::Optional<std::string> host_resolver_rules_;
68 base::Optional<gfx::Size> window_size_; 67 base::Optional<gfx::Size> window_size_;
69 base::Optional<base::FilePath> user_data_dir_; 68 base::Optional<base::FilePath> user_data_dir_;
70 base::Optional<bool> incognito_mode_; 69 base::Optional<bool> incognito_mode_;
71 base::Optional<base::Callback<void(WebPreferences*)>> 70 base::Optional<base::Callback<void(WebPreferences*)>>
72 override_web_preferences_callback_; 71 override_web_preferences_callback_;
73 72
74 ProtocolHandlerMap protocol_handlers_; 73 ProtocolHandlerMap protocol_handlers_;
75 74
76 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextOptions); 75 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextOptions);
77 }; 76 };
78 77
79 } // namespace headless 78 } // namespace headless
80 79
81 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ 80 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_browser_context_impl.cc ('k') | headless/lib/browser/headless_browser_context_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698