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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 static bool URLsAreManaged(PrefService* prefs); | 58 static bool URLsAreManaged(PrefService* prefs); |
59 | 59 |
60 // Whether the startup type has not been overridden from its default. | 60 // Whether the startup type has not been overridden from its default. |
61 static bool TypeIsDefault(PrefService* prefs); | 61 static bool TypeIsDefault(PrefService* prefs); |
62 | 62 |
63 // Converts an integer pref value to a SessionStartupPref::Type. | 63 // Converts an integer pref value to a SessionStartupPref::Type. |
64 static SessionStartupPref::Type PrefValueToType(int pref_value); | 64 static SessionStartupPref::Type PrefValueToType(int pref_value); |
65 | 65 |
66 explicit SessionStartupPref(Type type); | 66 explicit SessionStartupPref(Type type); |
67 | 67 |
| 68 SessionStartupPref(const SessionStartupPref& other); |
| 69 |
68 ~SessionStartupPref(); | 70 ~SessionStartupPref(); |
69 | 71 |
70 // What to do on startup. | 72 // What to do on startup. |
71 Type type; | 73 Type type; |
72 | 74 |
73 // The URLs to restore. Only used if type == URLS. | 75 // The URLs to restore. Only used if type == URLS. |
74 std::vector<GURL> urls; | 76 std::vector<GURL> urls; |
75 }; | 77 }; |
76 | 78 |
77 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ | 79 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ |
OLD | NEW |