Index: components/dom_distiller/core/reader_mode_preferences.h |
diff --git a/components/dom_distiller/core/reader_mode_preferences.h b/components/dom_distiller/core/reader_mode_preferences.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..076412619d03fce1b4c188dacd4ae2ea28295c71 |
--- /dev/null |
+++ b/components/dom_distiller/core/reader_mode_preferences.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2014 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 COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_ |
nyquist
2014/06/24 23:08:49
COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_PREFEREN
smaslo
2014/06/26 20:05:38
Done.
|
+#define COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_ |
+ |
+#include "base/macros.h" |
+ |
+class PrefService; |
+ |
+namespace user_prefs { |
+class PrefRegistrySyncable; |
+} |
+ |
+namespace dom_distiller { |
+ |
+class ReaderModePrefs { |
nyquist
2014/06/24 23:08:49
Add a comment which describes what this class is s
smaslo
2014/06/26 20:05:38
Done.
|
+ public: |
+ explicit ReaderModePrefs(PrefService* pref_service); |
+ static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
+ |
+ // Sets whether high contrast mode should be used. |
+ void SetHighContrastPref(bool new_value); |
+ |
+ // Returns whether high contrast mode should be used. |
+ bool GetHighContrastPref() const; |
+ |
+ private: |
+ PrefService* pref_service_; |
+ DISALLOW_COPY_AND_ASSIGN(ReaderModePrefs); |
nyquist
2014/06/24 23:08:49
Nit: newline before DISALLOW...
smaslo
2014/06/26 20:05:38
Done.
|
+}; |
+ |
+} // namespace dom_distiller |
+ |
+#endif // COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_ |