| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "printing/print_job_constants.h" | 11 #include "printing/print_job_constants.h" |
| 12 | 12 |
| 13 class PrefService; | 13 class PrefService; |
| 14 | 14 |
| 15 namespace base { | |
| 16 class DictionaryValue; | |
| 17 } | |
| 18 | |
| 19 namespace user_prefs { | 15 namespace user_prefs { |
| 20 class PrefRegistrySyncable; | 16 class PrefRegistrySyncable; |
| 21 } | 17 } |
| 22 | 18 |
| 23 namespace printing { | 19 namespace printing { |
| 24 | 20 |
| 25 // Holds all the settings that should be remembered (sticky) in print preview. | 21 // Holds all the settings that should be remembered (sticky) in print preview. |
| 26 // A sticky setting will be restored next time the user launches print preview. | 22 // A sticky setting will be restored next time the user launches print preview. |
| 27 // Only one instance of this class is instantiated. | 23 // Only one instance of this class is instantiated. |
| 28 class StickySettings { | 24 class StickySettings { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 39 void RestoreFromPrefs(PrefService* profile); | 35 void RestoreFromPrefs(PrefService* profile); |
| 40 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 36 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 41 | 37 |
| 42 private: | 38 private: |
| 43 std::unique_ptr<std::string> printer_app_state_; | 39 std::unique_ptr<std::string> printer_app_state_; |
| 44 }; | 40 }; |
| 45 | 41 |
| 46 } // namespace printing | 42 } // namespace printing |
| 47 | 43 |
| 48 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ | 44 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ |
| OLD | NEW |