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

Side by Side Diff: chrome/browser/prefs/pref_set_observer.h

Issue 9620010: Added Protector backup for Preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload 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/extensions/extension_prefs.cc ('k') | chrome/browser/prefs/pref_set_observer.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PREFS_PREF_SET_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_
6 #define CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_ 6 #define CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 24 matching lines...) Expand all
35 // Create a pref set observer for all preferences relevant to proxies. 35 // Create a pref set observer for all preferences relevant to proxies.
36 static PrefSetObserver* CreateProxyPrefSetObserver( 36 static PrefSetObserver* CreateProxyPrefSetObserver(
37 PrefService* pref_service, 37 PrefService* pref_service,
38 content::NotificationObserver* observer); 38 content::NotificationObserver* observer);
39 39
40 // Create a pref set observer for all preferences relevant to default search. 40 // Create a pref set observer for all preferences relevant to default search.
41 static PrefSetObserver* CreateDefaultSearchPrefSetObserver( 41 static PrefSetObserver* CreateDefaultSearchPrefSetObserver(
42 PrefService* pref_service, 42 PrefService* pref_service,
43 content::NotificationObserver* observer); 43 content::NotificationObserver* observer);
44 44
45 // Create a pref set observer for preferences accessed by ProtectorService.
46 static PrefSetObserver* CreateProtectedPrefSetObserver(
47 PrefService* pref_service,
48 content::NotificationObserver* observer);
49
45 private: 50 private:
46 // Overridden from content::NotificationObserver. 51 // Overridden from content::NotificationObserver.
47 virtual void Observe(int type, 52 virtual void Observe(int type,
48 const content::NotificationSource& source, 53 const content::NotificationSource& source,
49 const content::NotificationDetails& details) OVERRIDE; 54 const content::NotificationDetails& details) OVERRIDE;
50 55
51 typedef std::set<std::string> PrefSet; 56 typedef std::set<std::string> PrefSet;
52 PrefSet prefs_; 57 PrefSet prefs_;
53 58
54 PrefService* pref_service_; 59 PrefService* pref_service_;
55 PrefChangeRegistrar registrar_; 60 PrefChangeRegistrar registrar_;
56 content::NotificationObserver* observer_; 61 content::NotificationObserver* observer_;
57 62
58 DISALLOW_COPY_AND_ASSIGN(PrefSetObserver); 63 DISALLOW_COPY_AND_ASSIGN(PrefSetObserver);
59 }; 64 };
60 65
61 #endif // CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_ 66 #endif // CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/prefs/pref_set_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698