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

Side by Side Diff: chrome/browser/extensions/extension_pref_value_map.h

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 2 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
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_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/prefs/pref_value_map.h"
13 #include "base/time.h" 14 #include "base/time.h"
14 #include "base/values.h" 15 #include "base/values.h"
15 #include "chrome/browser/prefs/pref_value_map.h" 16 #include "chrome/browser/extensions/extension_prefs_scope.h"
16 #include "chrome/browser/profiles/profile_keyed_service.h" 17 #include "chrome/browser/profiles/profile_keyed_service.h"
17 #include "chrome/browser/extensions/extension_prefs_scope.h"
18 18
19 // Non-persistent data container that is shared by ExtensionPrefStores. All 19 // Non-persistent data container that is shared by ExtensionPrefStores. All
20 // extension pref values (incognito and regular) are stored herein and 20 // extension pref values (incognito and regular) are stored herein and
21 // provided to ExtensionPrefStores. 21 // provided to ExtensionPrefStores.
22 // 22 //
23 // The semantics of the ExtensionPrefValueMap are: 23 // The semantics of the ExtensionPrefValueMap are:
24 // - A regular setting applies to regular browsing sessions as well as incognito 24 // - A regular setting applies to regular browsing sessions as well as incognito
25 // browsing sessions. 25 // browsing sessions.
26 // - An incognito setting applies only to incognito browsing sessions, not to 26 // - An incognito setting applies only to incognito browsing sessions, not to
27 // regular ones. It takes precedence over a regular setting set by the same 27 // regular ones. It takes precedence over a regular setting set by the same
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // being destroyed. In tests, it isn't called, so the notification must 184 // being destroyed. In tests, it isn't called, so the notification must
185 // be done in the destructor. This bit tracks whether it has been done yet. 185 // be done in the destructor. This bit tracks whether it has been done yet.
186 bool destroyed_; 186 bool destroyed_;
187 187
188 ObserverList<Observer, true> observers_; 188 ObserverList<Observer, true> observers_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap); 190 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap);
191 }; 191 };
192 192
193 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_H_ 193 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_pref_store.h ('k') | chrome/browser/extensions/extension_pref_value_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698