[email protected] | 6d8a0b09 | 2013-06-12 20:54:13 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
[email protected] | 9783c16 | 2011-05-25 21:45:51 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 6d8a0b09 | 2013-06-12 20:54:13 | [diff] [blame] | 5 | #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_SCOPE_H_ |
6 | #define EXTENSIONS_BROWSER_EXTENSION_PREFS_SCOPE_H_ | ||||
[email protected] | 9783c16 | 2011-05-25 21:45:51 | [diff] [blame] | 7 | |
[email protected] | 9783c16 | 2011-05-25 21:45:51 | [diff] [blame] | 8 | |
[email protected] | 4575961 | 2012-07-10 17:21:23 | [diff] [blame] | 9 | namespace extensions { |
10 | |||||
[email protected] | 9783c16 | 2011-05-25 21:45:51 | [diff] [blame] | 11 | // Scope for a preference. |
[email protected] | dece9a6 | 2011-06-07 17:38:59 | [diff] [blame] | 12 | enum ExtensionPrefsScope { |
[email protected] | 7d3a0e3 | 2012-06-14 22:37:29 | [diff] [blame] | 13 | // Regular profile and incognito. |
[email protected] | dece9a6 | 2011-06-07 17:38:59 | [diff] [blame] | 14 | kExtensionPrefsScopeRegular, |
[email protected] | 7d3a0e3 | 2012-06-14 22:37:29 | [diff] [blame] | 15 | // Regular profile only. |
16 | kExtensionPrefsScopeRegularOnly, | ||||
[email protected] | 9783c16 | 2011-05-25 21:45:51 | [diff] [blame] | 17 | // Incognito profile; preference is persisted to disk and remains active |
18 | // after a browser restart. | ||||
[email protected] | dece9a6 | 2011-06-07 17:38:59 | [diff] [blame] | 19 | kExtensionPrefsScopeIncognitoPersistent, |
[email protected] | 3168574 | 2011-05-25 23:01:56 | [diff] [blame] | 20 | // Incognito profile; preference is kept in memory and deleted when the |
21 | // incognito session is terminated. | ||||
[email protected] | dece9a6 | 2011-06-07 17:38:59 | [diff] [blame] | 22 | kExtensionPrefsScopeIncognitoSessionOnly |
[email protected] | 9783c16 | 2011-05-25 21:45:51 | [diff] [blame] | 23 | }; |
24 | |||||
[email protected] | 4575961 | 2012-07-10 17:21:23 | [diff] [blame] | 25 | } // namespace extensions |
26 | |||||
[email protected] | 6d8a0b09 | 2013-06-12 20:54:13 | [diff] [blame] | 27 | #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_SCOPE_H_ |