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

Side by Side Diff: blimp/engine/app/blimp_content_browser_client.h

Issue 1810213009: blimp: Add settings to allow the client to download the whole page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@record_full_document
Patch Set: Use ContentBrowserClient to override prefs. Created 4 years, 9 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_
6 #define BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ 6 #define BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/content_browser_client.h" 9 #include "content/public/browser/content_browser_client.h"
10 10
11 namespace blimp { 11 namespace blimp {
12 namespace engine { 12 namespace engine {
13 13
14 class BlimpBrowserMainParts; 14 class BlimpBrowserMainParts;
15 class BlimpBrowserContext; 15 class BlimpBrowserContext;
16 16
17 class BlimpContentBrowserClient : public content::ContentBrowserClient { 17 class BlimpContentBrowserClient : public content::ContentBrowserClient {
18 public: 18 public:
19 BlimpContentBrowserClient(); 19 BlimpContentBrowserClient();
20 ~BlimpContentBrowserClient() override; 20 ~BlimpContentBrowserClient() override;
21 21
22 // content::ContentBrowserClient implementation. 22 // content::ContentBrowserClient implementation.
23 content::BrowserMainParts* CreateBrowserMainParts( 23 content::BrowserMainParts* CreateBrowserMainParts(
24 const content::MainFunctionParams& parameters) override; 24 const content::MainFunctionParams& parameters) override;
25 net::URLRequestContextGetter* CreateRequestContext( 25 net::URLRequestContextGetter* CreateRequestContext(
26 content::BrowserContext* browser_context, 26 content::BrowserContext* browser_context,
27 content::ProtocolHandlerMap* protocol_handlers, 27 content::ProtocolHandlerMap* protocol_handlers,
28 content::URLRequestInterceptorScopedVector request_interceptors) override; 28 content::URLRequestInterceptorScopedVector request_interceptors) override;
29 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host,
30 content::WebPreferences* prefs) override;
29 31
30 BlimpBrowserContext* GetBrowserContext(); 32 BlimpBrowserContext* GetBrowserContext();
31 33
32 private: 34 private:
33 // Owned by BrowserMainLoop 35 // Owned by BrowserMainLoop
34 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr; 36 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr;
35 37
36 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient); 38 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient);
37 }; 39 };
38 40
39 } // namespace engine 41 } // namespace engine
40 } // namespace blimp 42 } // namespace blimp
41 43
42 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ 44 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_browser_main_parts.cc ('k') | blimp/engine/app/blimp_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698