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

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

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
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
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__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698