Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: chrome/browser/session_startup_pref.h

Issue 39206: NO CODE CHANGE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_model.h ('k') | chrome/browser/sessions/session_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698