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

Side by Side Diff: chrome/browser/ui/webui/print_preview/sticky_settings.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.h ('k') | chrome/browser/ui/webui/set_as_default_browser_ui_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698