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 <string> | 9 #include <string> |
9 | 10 |
10 #include "base/memory/scoped_ptr.h" | |
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 { | 15 namespace base { |
16 class DictionaryValue; | 16 class DictionaryValue; |
17 class FilePath; | 17 class FilePath; |
18 } | 18 } |
19 | 19 |
20 namespace user_prefs { | 20 namespace user_prefs { |
(...skipping 16 matching lines...) Expand all Loading... |
37 // Stores app state for the last used printer. | 37 // Stores app state for the last used printer. |
38 void StoreAppState(const std::string& app_state); | 38 void StoreAppState(const std::string& app_state); |
39 // Stores the last path the user used to save to pdf. | 39 // Stores the last path the user used to save to pdf. |
40 void StoreSavePath(const base::FilePath& path); | 40 void StoreSavePath(const base::FilePath& path); |
41 | 41 |
42 void SaveInPrefs(PrefService* profile); | 42 void SaveInPrefs(PrefService* profile); |
43 void RestoreFromPrefs(PrefService* profile); | 43 void RestoreFromPrefs(PrefService* profile); |
44 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 44 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
45 | 45 |
46 private: | 46 private: |
47 scoped_ptr<base::FilePath> save_path_; | 47 std::unique_ptr<base::FilePath> save_path_; |
48 scoped_ptr<std::string> printer_app_state_; | 48 std::unique_ptr<std::string> printer_app_state_; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace printing | 51 } // namespace printing |
52 | 52 |
53 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ | 53 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ |
OLD | NEW |