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 |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 | 12 |
13 class PrefService; | 13 class PrefService; |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 // StartupPref specifies what should happen at startup for a specified profile. | 16 // StartupPref specifies what should happen at startup for a specified profile. |
17 // StartupPref is stored in the preferences for a particular profile. | 17 // StartupPref is stored in the preferences for a particular profile. |
18 struct SessionStartupPref { | 18 struct SessionStartupPref { |
19 enum Type { | 19 enum Type { |
20 // Indicates the user wants to open the New Tab page. | 20 // Indicates the user wants to open the New Tab page. |
21 DEFAULT, | 21 DEFAULT, |
22 | 22 |
23 // TODO(tbreisacher) Deprecate this option. | 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 }; | 32 }; |
33 | 33 |
(...skipping 18 matching lines...) Expand all Loading... |
52 ~SessionStartupPref(); | 52 ~SessionStartupPref(); |
53 | 53 |
54 // What to do on startup. | 54 // What to do on startup. |
55 Type type; | 55 Type type; |
56 | 56 |
57 // The URLs to restore. Only used if type == URLS. | 57 // The URLs to restore. Only used if type == URLS. |
58 std::vector<GURL> urls; | 58 std::vector<GURL> urls; |
59 }; | 59 }; |
60 | 60 |
61 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ | 61 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ |
OLD | NEW |