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

Unified Diff: blimp/common/create_blimp_message.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/common/create_blimp_message.h ('k') | blimp/common/create_blimp_message_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/create_blimp_message.cc
diff --git a/blimp/common/create_blimp_message.cc b/blimp/common/create_blimp_message.cc
index ddb28dc9592fefed54815e8e330584a3a965957b..3c1eb70519cc42a513252a1406fddd0c05690692 100644
--- a/blimp/common/create_blimp_message.cc
+++ b/blimp/common/create_blimp_message.cc
@@ -10,6 +10,7 @@
#include "blimp/common/proto/compositor.pb.h"
#include "blimp/common/proto/input.pb.h"
#include "blimp/common/proto/render_widget.pb.h"
+#include "blimp/common/proto/settings.pb.h"
#include "blimp/common/proto/tab_control.pb.h"
namespace blimp {
@@ -83,6 +84,15 @@ scoped_ptr<BlimpMessage> CreateBlimpMessage(SizeMessage** size_message) {
return output;
}
+scoped_ptr<BlimpMessage> CreateBlimpMessage(
+ EngineSettingsMessage** engine_settings) {
+ DCHECK(engine_settings);
+ scoped_ptr<BlimpMessage> output(new BlimpMessage);
+ output->set_type(BlimpMessage::SETTINGS);
+ *engine_settings = output->mutable_settings()->mutable_engine_settings();
+ return output;
+}
+
scoped_ptr<BlimpMessage> CreateStartConnectionMessage(
const std::string& client_token,
int protocol_version) {
« no previous file with comments | « blimp/common/create_blimp_message.h ('k') | blimp/common/create_blimp_message_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698