OLD | NEW |
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_EXTENSIONS_EXTENSION_PREFS_SCOPE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_SCOPE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_SCOPE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_SCOPE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 namespace extension_prefs_scope { | 9 namespace extension_prefs_scope { |
10 | 10 |
11 // Scope for a preference. | 11 // Scope for a preference. |
12 enum Scope { | 12 enum Scope { |
13 // Regular profile. | 13 // Regular profile. |
14 kRegular, | 14 kRegular, |
15 // Incognito profile; preference is persisted to disk and remains active | 15 // Incognito profile; preference is persisted to disk and remains active |
16 // after a browser restart. | 16 // after a browser restart. |
17 kIncognitoPersistent, | 17 kIncognitoPersistent, |
18 // TODO(battre): add kIncognitoSession | 18 // Incognito profile; preference is kept in memory and deleted when the |
| 19 // incognito session is terminated. |
| 20 kIncognitoSessionOnly |
19 }; | 21 }; |
20 | 22 |
21 } // extension_prefs_scope | 23 } // extension_prefs_scope |
22 | 24 |
23 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_SCOPE_H_ | 25 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_SCOPE_H_ |
OLD | NEW |