| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_SESSION_STARTUP_PREF_H__ | 5 #ifndef CHROME_BROWSER_SESSION_STARTUP_PREF_H__ |
| 6 #define CHROME_BROWSER_SESSION_STARTUP_PREF_H__ | 6 #define CHROME_BROWSER_SESSION_STARTUP_PREF_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Indicates the user wants to restore a specific set of URLs. The URLs | 25 // Indicates the user wants to restore a specific set of URLs. The URLs |
| 26 // are contained in urls. | 26 // are contained in urls. |
| 27 URLS | 27 URLS |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 static void RegisterUserPrefs(PrefService* prefs); | 30 static void RegisterUserPrefs(PrefService* prefs); |
| 31 | 31 |
| 32 // What should happen on startup for the specified profile. | 32 // What should happen on startup for the specified profile. |
| 33 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref); | 33 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref); |
| 34 static void SetStartupPref(PrefService* prefs, const SessionStartupPref& pref)
; | 34 static void SetStartupPref(PrefService* prefs, |
| 35 const SessionStartupPref& pref); |
| 35 static SessionStartupPref GetStartupPref(Profile* profile); | 36 static SessionStartupPref GetStartupPref(Profile* profile); |
| 36 static SessionStartupPref GetStartupPref(PrefService* prefs); | 37 static SessionStartupPref GetStartupPref(PrefService* prefs); |
| 37 | 38 |
| 38 SessionStartupPref() : type(DEFAULT) {} | 39 SessionStartupPref() : type(DEFAULT) {} |
| 39 | 40 |
| 40 explicit SessionStartupPref(Type type) : type(type) {} | 41 explicit SessionStartupPref(Type type) : type(type) {} |
| 41 | 42 |
| 42 // What to do on startup. | 43 // What to do on startup. |
| 43 Type type; | 44 Type type; |
| 44 | 45 |
| 45 // The URLs to restore. Only used if type == URLS. | 46 // The URLs to restore. Only used if type == URLS. |
| 46 std::vector<GURL> urls; | 47 std::vector<GURL> urls; |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 #endif // CHROME_BROWSER_SESSION_STARTUP_PREF_H__ | 50 #endif // CHROME_BROWSER_SESSION_STARTUP_PREF_H__ |
| 50 | 51 |
| OLD | NEW |