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

Unified Diff: blimp/client/session/blimp_client_session.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/client/session/blimp_client_session.h ('k') | blimp/common/create_blimp_message.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/session/blimp_client_session.cc
diff --git a/blimp/client/session/blimp_client_session.cc b/blimp/client/session/blimp_client_session.cc
index 615b3ef2f1601a5e60f37b82a5688fbef0cd2cb2..fa3a93b58873b19142d6c8a4950240a0670cc527 100644
--- a/blimp/client/session/blimp_client_session.cc
+++ b/blimp/client/session/blimp_client_session.cc
@@ -15,6 +15,7 @@
#include "blimp/client/feature/ime_feature.h"
#include "blimp/client/feature/navigation_feature.h"
#include "blimp/client/feature/render_widget_feature.h"
+#include "blimp/client/feature/settings_feature.h"
#include "blimp/client/feature/tab_control_feature.h"
#include "blimp/net/blimp_connection.h"
#include "blimp/net/blimp_message_processor.h"
@@ -152,6 +153,7 @@ BlimpClientSession::BlimpClientSession()
navigation_feature_(new NavigationFeature),
ime_feature_(new ImeFeature),
render_widget_feature_(new RenderWidgetFeature),
+ settings_feature_(new SettingsFeature),
weak_factory_(this) {
net_components_.reset(new ClientNetworkComponents(
make_scoped_ptr(new CrossThreadNetworkEventObserver(
@@ -219,6 +221,13 @@ void BlimpClientSession::RegisterFeatures() {
render_widget_feature_->set_outgoing_compositor_message_processor(
thread_pipe_manager_->RegisterFeature(BlimpMessage::COMPOSITOR,
render_widget_feature_.get()));
+ settings_feature_->set_outgoing_message_processor(
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::SETTINGS,
+ settings_feature_.get()));
+
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDownloadWholeDocument))
+ settings_feature_->SetRecordWholeDocument(true);
// Client will not send send any RenderWidget messages, so don't save the
// outgoing BlimpMessageProcessor in the RenderWidgetFeature.
« no previous file with comments | « blimp/client/session/blimp_client_session.h ('k') | blimp/common/create_blimp_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698