OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_BROWSER_EXTENSION_PREFS_SCOPE_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_SCOPE_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_SCOPE_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_SCOPE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 | 8 |
10 namespace extensions { | 9 namespace extensions { |
11 | 10 |
12 // Scope for a preference. | 11 // Scope for a preference. |
13 enum ExtensionPrefsScope { | 12 enum ExtensionPrefsScope { |
14 // Regular profile and incognito. | 13 // Regular profile and incognito. |
15 kExtensionPrefsScopeRegular, | 14 kExtensionPrefsScopeRegular, |
16 // Regular profile only. | 15 // Regular profile only. |
17 kExtensionPrefsScopeRegularOnly, | 16 kExtensionPrefsScopeRegularOnly, |
18 // Incognito profile; preference is persisted to disk and remains active | 17 // Incognito profile; preference is persisted to disk and remains active |
19 // after a browser restart. | 18 // after a browser restart. |
20 kExtensionPrefsScopeIncognitoPersistent, | 19 kExtensionPrefsScopeIncognitoPersistent, |
21 // Incognito profile; preference is kept in memory and deleted when the | 20 // Incognito profile; preference is kept in memory and deleted when the |
22 // incognito session is terminated. | 21 // incognito session is terminated. |
23 kExtensionPrefsScopeIncognitoSessionOnly | 22 kExtensionPrefsScopeIncognitoSessionOnly |
24 }; | 23 }; |
25 | 24 |
26 } // namespace extensions | 25 } // namespace extensions |
27 | 26 |
28 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_SCOPE_H_ | 27 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_SCOPE_H_ |
OLD | NEW |