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_CORE_SETTINGS_SETTINGS_OBSERVER_H_ | |
| 6 #define BLIMP_CLIENT_CORE_SETTINGS_SETTINGS_OBSERVER_H_ | |
| 7 | |
| 8 #include "base/observer_list.h" | |
| 9 | |
| 10 namespace blimp { | |
| 11 namespace client { | |
| 12 | |
| 13 class SettingsObserver { | |
| 14 public: | |
| 15 virtual ~SettingsObserver() = default; | |
| 16 | |
| 17 // Invoked when enabling or disabling Blimp mode in the Settings. | |
| 18 virtual void OnBlimpModeEnabled(bool enable) {} | |
| 19 | |
| 20 // Invoked when enabling or disabling to show the network stats in the | |
| 21 // Settings. | |
| 22 virtual void OnShowNetworkStatsChanged(bool enable) {} | |
| 23 | |
| 24 // Invoked when enabling or disabling to download the whole document in the | |
| 25 // Settings. | |
| 26 virtual void OnRecordWholeDocumentChanged(bool enable) {} | |
| 27 | |
| 28 // Invoked when Blimp mode or record_whole_document changed in the Settings. | |
|
David Trainor- moved to gerrit
2016/10/05 23:46:21
Make this more generic. Invoked when a settings c
Menglin
2016/10/06 22:36:38
Done.
| |
| 29 virtual void OnRestartRequired() {} | |
| 30 | |
| 31 protected: | |
| 32 SettingsObserver() = default; | |
| 33 | |
| 34 private: | |
| 35 DISALLOW_COPY_AND_ASSIGN(SettingsObserver); | |
| 36 }; | |
| 37 | |
| 38 } // namespace client | |
| 39 } // namespace blimp | |
| 40 | |
| 41 #endif // BLIMP_CLIENT_CORE_SETTINGS_SETTINGS_OBSERVER_H_ | |
| OLD | NEW |