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

Unified Diff: blimp/client/feature/settings_feature.h

Issue 2292723003: Move remaining Blimp feature code to core. (Closed)
Patch Set: Fixed gn check failure Created 4 years, 4 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/client/feature/settings_feature.h
diff --git a/blimp/client/feature/settings_feature.h b/blimp/client/feature/settings_feature.h
deleted file mode 100644
index 58c50f5d2c96e97919026b343a4a31ad251c861f..0000000000000000000000000000000000000000
--- a/blimp/client/feature/settings_feature.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// 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_CLIENT_FEATURE_SETTINGS_FEATURE_H_
-#define BLIMP_CLIENT_FEATURE_SETTINGS_FEATURE_H_
-
-#include "base/macros.h"
-#include "blimp/net/blimp_message_processor.h"
-
-namespace blimp {
-namespace client {
-
-// The feature is used to send global settings to the engine.
-class SettingsFeature : public BlimpMessageProcessor {
- public:
- SettingsFeature();
- ~SettingsFeature() override;
-
- // Set the BlimpMessageProcessor that will be used to send
- // BlimpMessage::SETTINGS messages to the engine.
- void set_outgoing_message_processor(
- std::unique_ptr<BlimpMessageProcessor> processor);
-
- void SetRecordWholeDocument(bool record_whole_document);
- void SendUserAgentOSVersionInfo(const std::string& client_os_info);
-
- // BlimpMessageProcessor implementation.
- void ProcessMessage(std::unique_ptr<BlimpMessage> message,
- const net::CompletionCallback& callback) override;
-
- private:
- // Used to send BlimpMessage::TAB_CONTROL messages to the engine.
- std::unique_ptr<BlimpMessageProcessor> outgoing_message_processor_;
-
- // Used to avoid sending unnecessary messages to engine.
- bool record_whole_document_;
-
- DISALLOW_COPY_AND_ASSIGN(SettingsFeature);
-};
-
-} // namespace client
-} // namespace blimp
-
-#endif // BLIMP_CLIENT_FEATURE_SETTINGS_FEATURE_H_

Powered by Google App Engine
This is Rietveld 408576698