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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // TODO(ivankr): CompositeSettingChange that incapsulates multiple | 78 // TODO(ivankr): CompositeSettingChange that incapsulates multiple |
79 // BaseSettingChange instances. | 79 // BaseSettingChange instances. |
80 | 80 |
81 // Allocates and initializes BaseSettingChange implementation for default search | 81 // Allocates and initializes BaseSettingChange implementation for default search |
82 // provider setting. Reports corresponding histograms. Both |actual| and | 82 // provider setting. Reports corresponding histograms. Both |actual| and |
83 // |backup| may be NULL if corresponding values are unknown or invalid. | 83 // |backup| may be NULL if corresponding values are unknown or invalid. |
84 // |backup| will be owned by the returned |BaseSettingChange| instance. |actual| | 84 // |backup| will be owned by the returned |BaseSettingChange| instance. |actual| |
85 // is not owned and is safe to destroy after Protector::ShowChange has been | 85 // is not owned and is safe to destroy after Protector::ShowChange has been |
86 // called for the returned instance. | 86 // called for the returned instance. |
87 BaseSettingChange* CreateDefaultSearchProviderChange( | 87 BaseSettingChange* CreateDefaultSearchProviderChange(const TemplateURL* actual, |
88 const TemplateURL* actual, | 88 TemplateURL* backup); |
89 TemplateURL* backup); | |
90 | 89 |
91 // Allocates and initializes BaseSettingChange implementation for session | 90 // Allocates and initializes BaseSettingChange implementation for session |
92 // startup setting. Reports corresponding histograms. | 91 // startup setting. Reports corresponding histograms. |
93 BaseSettingChange* CreateSessionStartupChange( | 92 BaseSettingChange* CreateSessionStartupChange( |
94 const SessionStartupPref& actual, | 93 const SessionStartupPref& actual, |
95 const SessionStartupPref& backup); | 94 const SessionStartupPref& backup); |
96 | 95 |
97 } // namespace protector | 96 } // namespace protector |
98 | 97 |
99 #endif // CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ | 98 #endif // CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ |
OLD | NEW |