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

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

Issue 2374063002: Headless: expose WebPreferences to embedder, add --hide-scrollbars. (Closed)
Patch Set: Address comments, add test. Created 4 years, 2 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 #include "headless/lib/browser/headless_browser_context_options.h" 5 #include "headless/lib/browser/headless_browser_context_options.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 namespace headless { 10 namespace headless {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 const ProtocolHandlerMap& HeadlessBrowserContextOptions::protocol_handlers() 64 const ProtocolHandlerMap& HeadlessBrowserContextOptions::protocol_handlers()
65 const { 65 const {
66 return protocol_handlers_; 66 return protocol_handlers_;
67 } 67 }
68 68
69 ProtocolHandlerMap HeadlessBrowserContextOptions::TakeProtocolHandlers() { 69 ProtocolHandlerMap HeadlessBrowserContextOptions::TakeProtocolHandlers() {
70 return std::move(protocol_handlers_); 70 return std::move(protocol_handlers_);
71 } 71 }
72 72
73 const base::Callback<void(WebPreferences*)>&
74 HeadlessBrowserContextOptions::override_web_preferences_callback() const {
75 return override_web_preferences_callback_;
76 }
77
73 } // namespace headless 78 } // namespace headless
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_browser_context_options.h ('k') | headless/lib/browser/headless_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698