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

Unified Diff: blimp/engine/app/blimp_content_browser_client.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/engine/app/blimp_content_browser_client.h ('k') | blimp/engine/app/engine_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_content_browser_client.cc
diff --git a/blimp/engine/app/blimp_content_browser_client.cc b/blimp/engine/app/blimp_content_browser_client.cc
index c10d04daa84b0553284a8692cdce848f148442f0..b10ad1ab14b53088dbf943e77fa200d4756517d8 100644
--- a/blimp/engine/app/blimp_content_browser_client.cc
+++ b/blimp/engine/app/blimp_content_browser_client.cc
@@ -4,6 +4,7 @@
#include "blimp/engine/app/blimp_content_browser_client.h"
#include "blimp/engine/app/blimp_browser_main_parts.h"
+#include "blimp/engine/app/settings_manager.h"
#include "blimp/engine/common/blimp_browser_context.h"
namespace blimp {
@@ -31,6 +32,19 @@ net::URLRequestContextGetter* BlimpContentBrowserClient::CreateRequestContext(
.get();
}
+void BlimpContentBrowserClient::OverrideWebkitPrefs(
+ content::RenderViewHost* render_view_host,
+ content::WebPreferences* prefs) {
+ if (!blimp_browser_main_parts_)
+ return;
+
+ if (!blimp_browser_main_parts_->GetSettingsManager())
+ return;
+
+ blimp_browser_main_parts_->GetSettingsManager()->UpdateWebkitPreferences(
+ prefs);
+}
+
BlimpBrowserContext* BlimpContentBrowserClient::GetBrowserContext() {
return blimp_browser_main_parts_->GetBrowserContext();
}
« no previous file with comments | « blimp/engine/app/blimp_content_browser_client.h ('k') | blimp/engine/app/engine_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698