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

Side by Side Diff: chrome/browser/protector/base_setting_change.h

Issue 9688002: [protector] Added SessionStartupChange for representing changes in SessionStartupPref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments. Created 8 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/prefs/session_startup_pref.h ('k') | chrome/browser/protector/histograms.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 14
15 class Browser; 15 class Browser;
16 class Profile; 16 class Profile;
17 class TemplateURL; 17 class TemplateURL;
18 struct SessionStartupPref;
18 19
19 namespace protector { 20 namespace protector {
20 21
21 // Base class for setting change tracked by Protector. 22 // Base class for setting change tracked by Protector.
22 class BaseSettingChange { 23 class BaseSettingChange {
23 public: 24 public:
24 BaseSettingChange(); 25 BaseSettingChange();
25 virtual ~BaseSettingChange(); 26 virtual ~BaseSettingChange();
26 27
27 // Applies initial actions to the setting if needed. Must be called before 28 // Applies initial actions to the setting if needed. Must be called before
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Allocates and initializes BaseSettingChange implementation for default search 81 // Allocates and initializes BaseSettingChange implementation for default search
81 // provider setting. Reports corresponding histograms. Both |actual| and 82 // provider setting. Reports corresponding histograms. Both |actual| and
82 // |backup| may be NULL if corresponding values are unknown or invalid. 83 // |backup| may be NULL if corresponding values are unknown or invalid.
83 // |backup| will be owned by the returned |BaseSettingChange| instance. |actual| 84 // |backup| will be owned by the returned |BaseSettingChange| instance. |actual|
84 // 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
85 // called for the returned instance. 86 // called for the returned instance.
86 BaseSettingChange* CreateDefaultSearchProviderChange( 87 BaseSettingChange* CreateDefaultSearchProviderChange(
87 const TemplateURL* actual, 88 const TemplateURL* actual,
88 TemplateURL* backup); 89 TemplateURL* backup);
89 90
91 // Allocates and initializes BaseSettingChange implementation for session
92 // startup setting. Reports corresponding histograms.
93 BaseSettingChange* CreateSessionStartupChange(
94 const SessionStartupPref& actual,
95 const SessionStartupPref& backup);
96
90 } // namespace protector 97 } // namespace protector
91 98
92 #endif // CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ 99 #endif // CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/session_startup_pref.h ('k') | chrome/browser/protector/histograms.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698