OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PREFS_INCOGNITO_MODE_AVAILABILITY_PREFS_H_ | |
6 #define CHROME_BROWSER_PREFS_INCOGNITO_MODE_AVAILABILITY_PREFS_H_ | |
Mattias Nissler (ping if slow)
2011/07/28 11:08:50
#pragma once
rustema
2011/07/29 06:49:23
Done.
| |
7 | |
8 namespace IncognitoModeAvailabilityPrefs { | |
Mattias Nissler (ping if slow)
2011/07/28 11:08:50
I suggest you make this a class, rename the enum t
Bernhard Bauer
2011/07/28 11:34:03
What Mattias said. How about naming the class just
rustema
2011/07/29 06:49:23
Done.
rustema
2011/07/29 06:49:23
Done.
| |
9 | |
10 // Possible values for Incognito mode availability pref. Please, do not change | |
11 // the order of entries since numeric values are exposed to users. | |
12 enum IncognitoModeAvailability { | |
13 // Incognito mode enabled. Users may open pages in both Incognito mode and | |
14 // normal mode (the default behaviour). | |
15 ENABLED = 0, | |
16 // Incognito mode disabled. Users may not open pages in Incognito mode. | |
17 // Only normal mode is available for browsing. | |
18 DISABLED = 1, | |
Bernhard Bauer
2011/07/28 11:34:03
Why do you explicitly list the enum values?
rustema
2011/07/29 06:49:23
To make it clearer and easier to see which policy
| |
19 // Incognito mode forced. Users may open pages *ONLY* in Incognito mode. | |
20 // Normal mode is not available for browsing. | |
21 FORCED = 2, | |
22 | |
23 AVAILABILITY_NUM_TYPES | |
24 }; | |
25 | |
26 bool IntToIngocnitoModeAvailability(int in_value, | |
27 IncognitoModeAvailability* out_value); | |
28 | |
29 } // namespace IncognitoModeAvailability | |
Mattias Nissler (ping if slow)
2011/07/28 11:08:50
incorrect name.
rustema
2011/07/29 06:49:23
Done.
| |
30 | |
31 #endif // CHROME_BROWSER_PREFS_INCOGNITO_MODE_AVAILABILITY_PREFS_H_ | |
OLD | NEW |