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

Unified Diff: blimp/engine/feature/engine_settings_feature.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 side-by-side diff with in-line comments
Download patch
Index: blimp/engine/feature/engine_settings_feature.h
diff --git a/blimp/engine/feature/engine_settings_feature.h b/blimp/engine/feature/engine_settings_feature.h
new file mode 100644
index 0000000000000000000000000000000000000000..126888d814224b64dddc8ef0606bfa7e6f430d17
--- /dev/null
+++ b/blimp/engine/feature/engine_settings_feature.h
@@ -0,0 +1,40 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BLIMP_ENGINE_FEATURE_ENGINE_SETTINGS_FEATURE_H_
+#define BLIMP_ENGINE_FEATURE_ENGINE_SETTINGS_FEATURE_H_
+
+#include "base/macros.h"
+#include "base/observer_list.h"
+#include "blimp/net/blimp_message_processor.h"
+#include "content/public/browser/render_view_host.h"
+
+namespace blimp {
+class EngineSettingsMessage;
+
+namespace engine {
+class SettingsManager;
+
+// The feature is used to receive global settings from the client.
+class EngineSettingsFeature : public BlimpMessageProcessor {
+ public:
+ explicit EngineSettingsFeature(SettingsManager* settings_manager);
+ ~EngineSettingsFeature() override;
+
+ // BlimpMessageProcessor implementation.
+ void ProcessMessage(scoped_ptr<BlimpMessage> message,
+ const net::CompletionCallback& callback) override;
+
+ private:
+ void ProcessWebPreferences(const EngineSettingsMessage& settings);
+
+ SettingsManager* settings_manager_;
+
+ DISALLOW_COPY_AND_ASSIGN(EngineSettingsFeature);
+};
+
+} // namespace engine
+} // namespace blimp
+
+#endif // BLIMP_ENGINE_FEATURE_ENGINE_SETTINGS_FEATURE_H_
« no previous file with comments | « blimp/engine/feature/engine_render_widget_feature_unittest.cc ('k') | blimp/engine/feature/engine_settings_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698