Chromium Code Reviews| 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_SESSION_STARTUP_PREF_H__ | 5 #ifndef CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ |
| 6 #define CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ | 6 #define CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 DEFAULT, | 21 DEFAULT, |
| 22 | 22 |
| 23 // Deprecated. See comment in session_startup_pref.cc | 23 // Deprecated. See comment in session_startup_pref.cc |
| 24 HOMEPAGE, | 24 HOMEPAGE, |
| 25 | 25 |
| 26 // Indicates the user wants to restore the last session. | 26 // Indicates the user wants to restore the last session. |
| 27 LAST, | 27 LAST, |
| 28 | 28 |
| 29 // Indicates the user wants to restore a specific set of URLs. The URLs | 29 // Indicates the user wants to restore a specific set of URLs. The URLs |
| 30 // are contained in urls. | 30 // are contained in urls. |
| 31 URLS | 31 URLS, |
| 32 | |
| 33 // Maximum value of this enum. | |
| 34 MAX = URLS | |
|
whywhat
2012/03/11 23:09:33
Did you mean LAST? :)
You could also use COUNT whi
Ivan Korotkov
2012/03/12 11:20:18
There is also LAST with a different meaning :) I g
| |
| 32 }; | 35 }; |
| 33 | 36 |
| 34 static void RegisterUserPrefs(PrefService* prefs); | 37 static void RegisterUserPrefs(PrefService* prefs); |
| 35 | 38 |
| 36 // What should happen on startup for the specified profile. | 39 // What should happen on startup for the specified profile. |
| 37 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref); | 40 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref); |
| 38 static void SetStartupPref(PrefService* prefs, | 41 static void SetStartupPref(PrefService* prefs, |
| 39 const SessionStartupPref& pref); | 42 const SessionStartupPref& pref); |
| 40 static SessionStartupPref GetStartupPref(Profile* profile); | 43 static SessionStartupPref GetStartupPref(Profile* profile); |
| 41 static SessionStartupPref GetStartupPref(PrefService* prefs); | 44 static SessionStartupPref GetStartupPref(PrefService* prefs); |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 52 ~SessionStartupPref(); | 55 ~SessionStartupPref(); |
| 53 | 56 |
| 54 // What to do on startup. | 57 // What to do on startup. |
| 55 Type type; | 58 Type type; |
| 56 | 59 |
| 57 // The URLs to restore. Only used if type == URLS. | 60 // The URLs to restore. Only used if type == URLS. |
| 58 std::vector<GURL> urls; | 61 std::vector<GURL> urls; |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ | 64 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ |
| OLD | NEW |