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

Unified Diff: blimp/client/core/settings/settings_feature.cc

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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/core/settings/settings_feature.h ('k') | blimp/client/core/settings/settings_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/settings/settings_feature.cc
diff --git a/blimp/client/core/settings/settings_feature.cc b/blimp/client/core/settings/settings_feature.cc
deleted file mode 100644
index bd6ccf6f89d1d57dc06bbadbd2e09062a8b707d8..0000000000000000000000000000000000000000
--- a/blimp/client/core/settings/settings_feature.cc
+++ /dev/null
@@ -1,54 +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.
-
-#include "blimp/client/core/settings/settings_feature.h"
-
-#include "blimp/client/core/settings/settings.h"
-#include "blimp/client/core/settings/user_agent.h"
-#include "blimp/common/create_blimp_message.h"
-#include "blimp/common/proto/blimp_message.pb.h"
-#include "blimp/common/proto/settings.pb.h"
-#include "net/base/net_errors.h"
-
-namespace blimp {
-namespace client {
-
-SettingsFeature::SettingsFeature(Settings* settings) : settings_(settings) {
- DCHECK(settings_);
-}
-
-SettingsFeature::~SettingsFeature() = default;
-
-void SettingsFeature::set_outgoing_message_processor(
- std::unique_ptr<BlimpMessageProcessor> processor) {
- outgoing_message_processor_ = std::move(processor);
-}
-
-void SettingsFeature::ProcessMessage(std::unique_ptr<BlimpMessage> message,
- const net::CompletionCallback& callback) {
- // We don't receive any messages from the engine yet.
- NOTREACHED() << "Invalid settings message received from the engine.";
- callback.Run(net::OK);
-}
-
-void SettingsFeature::OnRecordWholeDocumentChanged(bool enable) {
- EngineSettingsMessage* engine_settings;
- std::unique_ptr<BlimpMessage> message = CreateBlimpMessage(&engine_settings);
- engine_settings->set_record_whole_document(enable);
- outgoing_message_processor_->ProcessMessage(std::move(message),
- net::CompletionCallback());
-}
-
-void SettingsFeature::PushSettings() {
- EngineSettingsMessage* engine_settings;
- std::unique_ptr<BlimpMessage> message = CreateBlimpMessage(&engine_settings);
- engine_settings->set_record_whole_document(
- settings_->IsRecordWholeDocument());
- engine_settings->set_client_os_info(GetOSVersionInfoForUserAgent());
- outgoing_message_processor_->ProcessMessage(std::move(message),
- net::CompletionCallback());
-}
-
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/core/settings/settings_feature.h ('k') | blimp/client/core/settings/settings_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698