OLD | NEW |
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_PREFS_INCOGNITO_MODE_PREFS_H_ | 5 #ifndef CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ |
6 #define CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ | 6 #define CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 | 9 |
11 class CommandLine; | 10 class CommandLine; |
12 class PrefService; | 11 class PrefService; |
13 | 12 |
14 // Specifies Incognito mode availability preferences. | 13 // Specifies Incognito mode availability preferences. |
15 class IncognitoModePrefs { | 14 class IncognitoModePrefs { |
16 public: | 15 public: |
17 // Possible values for Incognito mode availability. Please, do not change | 16 // Possible values for Incognito mode availability. Please, do not change |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 48 |
50 // Returns true if the browser should start in incognito mode. | 49 // Returns true if the browser should start in incognito mode. |
51 static bool ShouldLaunchIncognito(const CommandLine& command_line, | 50 static bool ShouldLaunchIncognito(const CommandLine& command_line, |
52 const PrefService* prefs); | 51 const PrefService* prefs); |
53 | 52 |
54 private: | 53 private: |
55 DISALLOW_IMPLICIT_CONSTRUCTORS(IncognitoModePrefs); | 54 DISALLOW_IMPLICIT_CONSTRUCTORS(IncognitoModePrefs); |
56 }; | 55 }; |
57 | 56 |
58 #endif // CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ | 57 #endif // CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ |
OLD | NEW |