Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BLIMP_CLIENT_FEATURE_SETTINGS_FEATURE_H_ | |
| 6 #define BLIMP_CLIENT_FEATURE_SETTINGS_FEATURE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "blimp/client/blimp_client_export.h" | |
| 10 #include "blimp/net/blimp_message_processor.h" | |
| 11 | |
| 12 namespace blimp { | |
| 13 namespace client { | |
| 14 | |
| 15 // The feature is used to send global settings to the engine. | |
| 16 class BLIMP_CLIENT_EXPORT SettingsFeature : public BlimpMessageProcessor { | |
| 17 public: | |
| 18 SettingsFeature(); | |
| 19 ~SettingsFeature() override; | |
| 20 | |
| 21 // Set the BlimpMessageProcessor that will be used to send | |
| 22 // BlimpMessage::SETTINGS messages to the engine. | |
| 23 void set_outgoing_message_processor( | |
| 24 scoped_ptr<BlimpMessageProcessor> processor); | |
| 25 | |
| 26 void SetRecordWholeDocument(bool record_whole_document); | |
| 27 | |
| 28 private: | |
| 29 // BlimpMessageProcessor implementation. | |
| 30 void ProcessMessage(scoped_ptr<BlimpMessage> message, | |
| 31 const net::CompletionCallback& callback) override; | |
| 32 | |
| 33 // Used to send BlimpMessage::TAB_CONTROL messages to the engine. | |
|
haibinlu
2016/03/22 17:28:39
Settings message
Khushal
2016/03/25 23:00:22
Done.
| |
| 34 scoped_ptr<BlimpMessageProcessor> outgoing_message_processor_; | |
| 35 | |
| 36 // Used to avoid sending unnecessary messages to engine. | |
| 37 bool record_whole_document_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(SettingsFeature); | |
| 40 }; | |
| 41 | |
| 42 } // namespace client | |
| 43 } // namespace blimp | |
| 44 | |
| 45 #endif // BLIMP_CLIENT_FEATURE_SETTINGS_FEATURE_H_ | |
| OLD | NEW |