OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PROFILE_RESETTER_RESETTABLE_SETTINGS_SNAPSHOT_H_ | 5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_RESETTABLE_SETTINGS_SNAPSHOT_H_ |
6 #define CHROME_BROWSER_PROFILE_RESETTER_RESETTABLE_SETTINGS_SNAPSHOT_H_ | 6 #define CHROME_BROWSER_PROFILE_RESETTER_RESETTABLE_SETTINGS_SNAPSHOT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // Getters. | 43 // Getters. |
44 const std::vector<GURL>& startup_urls() const { return startup_.urls; } | 44 const std::vector<GURL>& startup_urls() const { return startup_.urls; } |
45 | 45 |
46 SessionStartupPref::Type startup_type() const { return startup_.type; } | 46 SessionStartupPref::Type startup_type() const { return startup_.type; } |
47 | 47 |
48 const std::string& homepage() const { return homepage_; } | 48 const std::string& homepage() const { return homepage_; } |
49 | 49 |
50 bool homepage_is_ntp() const { return homepage_is_ntp_; } | 50 bool homepage_is_ntp() const { return homepage_is_ntp_; } |
51 | 51 |
| 52 bool show_home_button() const { return show_home_button_; } |
| 53 |
52 const std::string& dse_url() const { return dse_url_; } | 54 const std::string& dse_url() const { return dse_url_; } |
53 | 55 |
54 const ExtensionList& enabled_extensions() const { | 56 const ExtensionList& enabled_extensions() const { |
55 return enabled_extensions_; | 57 return enabled_extensions_; |
56 } | 58 } |
57 | 59 |
58 const std::vector<ShortcutCommand>& shortcuts() const { | 60 const std::vector<ShortcutCommand>& shortcuts() const { |
59 return shortcuts_; | 61 return shortcuts_; |
60 } | 62 } |
61 | 63 |
(...skipping 20 matching lines...) Expand all Loading... |
82 // Fills the |shortcuts_| member and calls |callback|. | 84 // Fills the |shortcuts_| member and calls |callback|. |
83 void SetShortcutsAndReport( | 85 void SetShortcutsAndReport( |
84 const base::Closure& callback, | 86 const base::Closure& callback, |
85 const std::vector<ShortcutCommand>& shortcuts); | 87 const std::vector<ShortcutCommand>& shortcuts); |
86 | 88 |
87 // Startup pages. URLs are always stored sorted. | 89 // Startup pages. URLs are always stored sorted. |
88 SessionStartupPref startup_; | 90 SessionStartupPref startup_; |
89 | 91 |
90 std::string homepage_; | 92 std::string homepage_; |
91 bool homepage_is_ntp_; | 93 bool homepage_is_ntp_; |
| 94 bool show_home_button_; |
92 | 95 |
93 // Default search engine. | 96 // Default search engine. |
94 std::string dse_url_; | 97 std::string dse_url_; |
95 | 98 |
96 // List of pairs [id, name] for enabled extensions. Always sorted. | 99 // List of pairs [id, name] for enabled extensions. Always sorted. |
97 ExtensionList enabled_extensions_; | 100 ExtensionList enabled_extensions_; |
98 | 101 |
99 // Chrome shortcuts (e.g. icons on the Windows desktop, etc.) with non-empty | 102 // Chrome shortcuts (e.g. icons on the Windows desktop, etc.) with non-empty |
100 // arguments. | 103 // arguments. |
101 std::vector<ShortcutCommand> shortcuts_; | 104 std::vector<ShortcutCommand> shortcuts_; |
(...skipping 19 matching lines...) Expand all Loading... |
121 void SendSettingsFeedback(const std::string& report, | 124 void SendSettingsFeedback(const std::string& report, |
122 Profile* profile); | 125 Profile* profile); |
123 | 126 |
124 // Returns list of key/value pairs for all available reported information | 127 // Returns list of key/value pairs for all available reported information |
125 // from the |profile| and some additional fields. | 128 // from the |profile| and some additional fields. |
126 scoped_ptr<base::ListValue> GetReadableFeedbackForSnapshot( | 129 scoped_ptr<base::ListValue> GetReadableFeedbackForSnapshot( |
127 Profile* profile, | 130 Profile* profile, |
128 const ResettableSettingsSnapshot& snapshot); | 131 const ResettableSettingsSnapshot& snapshot); |
129 | 132 |
130 #endif // CHROME_BROWSER_PROFILE_RESETTER_RESETTABLE_SETTINGS_SNAPSHOT_H_ | 133 #endif // CHROME_BROWSER_PROFILE_RESETTER_RESETTABLE_SETTINGS_SNAPSHOT_H_ |
OLD | NEW |