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_PROTECTOR_BASE_SETTING_CHANGE_H_ | 5 #ifndef CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ |
6 #define CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ | 6 #define CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "chrome/browser/tabs/pinned_tab_codec.h" | 13 #include "chrome/browser/ui/startup/startup_tab.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 | 15 |
16 class Browser; | 16 class Browser; |
17 class Profile; | 17 class Profile; |
18 class TemplateURL; | 18 class TemplateURL; |
19 struct SessionStartupPref; | 19 struct SessionStartupPref; |
20 | 20 |
21 namespace protector { | 21 namespace protector { |
22 | 22 |
23 class CompositeSettingsChange; | 23 class CompositeSettingsChange; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // |backup| will be owned by the returned |BaseSettingChange| instance. |actual| | 137 // |backup| will be owned by the returned |BaseSettingChange| instance. |actual| |
138 // is not owned and is safe to destroy after Protector::ShowChange has been | 138 // is not owned and is safe to destroy after Protector::ShowChange has been |
139 // called for the returned instance. | 139 // called for the returned instance. |
140 BaseSettingChange* CreateDefaultSearchProviderChange(TemplateURL* actual, | 140 BaseSettingChange* CreateDefaultSearchProviderChange(TemplateURL* actual, |
141 TemplateURL* backup); | 141 TemplateURL* backup); |
142 | 142 |
143 // Allocates and initializes BaseSettingChange implementation for session | 143 // Allocates and initializes BaseSettingChange implementation for session |
144 // startup setting, including the pinned tabs. Reports corresponding histograms. | 144 // startup setting, including the pinned tabs. Reports corresponding histograms. |
145 BaseSettingChange* CreateSessionStartupChange( | 145 BaseSettingChange* CreateSessionStartupChange( |
146 const SessionStartupPref& actual_startup_pref, | 146 const SessionStartupPref& actual_startup_pref, |
147 const PinnedTabCodec::Tabs& actual_pinned_tabs, | 147 const StartupTabs& actual_pinned_tabs, |
148 const SessionStartupPref& backup_startup_pref, | 148 const SessionStartupPref& backup_startup_pref, |
149 const PinnedTabCodec::Tabs& backup_pinned_tabs); | 149 const StartupTabs& backup_pinned_tabs); |
150 | 150 |
151 BaseSettingChange* CreateHomepageChange( | 151 BaseSettingChange* CreateHomepageChange( |
152 const std::string& actual_homepage, | 152 const std::string& actual_homepage, |
153 bool actual_homepage_is_ntp, | 153 bool actual_homepage_is_ntp, |
154 bool actual_show_homepage, | 154 bool actual_show_homepage, |
155 const std::string& backup_homepage, | 155 const std::string& backup_homepage, |
156 bool backup_homepage_is_ntp, | 156 bool backup_homepage_is_ntp, |
157 bool backup_show_homepage); | 157 bool backup_show_homepage); |
158 | 158 |
159 // Allocates and initializes BaseSettingChange implementation for an unknown | 159 // Allocates and initializes BaseSettingChange implementation for an unknown |
160 // preferences change with invalid backup. | 160 // preferences change with invalid backup. |
161 BaseSettingChange* CreatePrefsBackupInvalidChange(); | 161 BaseSettingChange* CreatePrefsBackupInvalidChange(); |
162 | 162 |
163 } // namespace protector | 163 } // namespace protector |
164 | 164 |
165 #endif // CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ | 165 #endif // CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ |
OLD | NEW |