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

Side by Side Diff: chrome/browser/profiles/profile_impl.h

Issue 654223009: Standardize usage of virtual/override/final in chrome/browser/profiles/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 namespace user_prefs { 64 namespace user_prefs {
65 class refRegistrySyncable; 65 class refRegistrySyncable;
66 } 66 }
67 67
68 // The default profile implementation. 68 // The default profile implementation.
69 class ProfileImpl : public Profile { 69 class ProfileImpl : public Profile {
70 public: 70 public:
71 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. 71 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests.
72 static const char* const kPrefExitTypeNormal; 72 static const char* const kPrefExitTypeNormal;
73 73
74 virtual ~ProfileImpl(); 74 ~ProfileImpl() override;
75 75
76 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 76 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
77 77
78 // content::BrowserContext implementation: 78 // content::BrowserContext implementation:
79 virtual base::FilePath GetPath() const override; 79 base::FilePath GetPath() const override;
80 virtual content::DownloadManagerDelegate* 80 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
81 GetDownloadManagerDelegate() override; 81 net::URLRequestContextGetter* GetRequestContext() override;
82 virtual net::URLRequestContextGetter* GetRequestContext() override; 82 net::URLRequestContextGetter* GetRequestContextForRenderProcess(
83 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
84 int renderer_child_id) override; 83 int renderer_child_id) override;
85 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; 84 net::URLRequestContextGetter* GetMediaRequestContext() override;
86 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 85 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
87 int renderer_child_id) override; 86 int renderer_child_id) override;
88 virtual net::URLRequestContextGetter* 87 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition(
89 GetMediaRequestContextForStoragePartition( 88 const base::FilePath& partition_path,
90 const base::FilePath& partition_path, 89 bool in_memory) override;
91 bool in_memory) override; 90 content::ResourceContext* GetResourceContext() override;
92 virtual content::ResourceContext* GetResourceContext() override; 91 content::BrowserPluginGuestManager* GetGuestManager() override;
93 virtual content::BrowserPluginGuestManager* GetGuestManager() override; 92 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
94 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 93 content::PushMessagingService* GetPushMessagingService() override;
95 virtual content::PushMessagingService* GetPushMessagingService() override; 94 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
96 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
97 95
98 // Profile implementation: 96 // Profile implementation:
99 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; 97 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override;
100 // Note that this implementation returns the Google-services username, if any, 98 // Note that this implementation returns the Google-services username, if any,
101 // not the Chrome user's display name. 99 // not the Chrome user's display name.
102 virtual std::string GetProfileName() override; 100 std::string GetProfileName() override;
103 virtual ProfileType GetProfileType() const override; 101 ProfileType GetProfileType() const override;
104 virtual bool IsOffTheRecord() const override; 102 bool IsOffTheRecord() const override;
105 virtual Profile* GetOffTheRecordProfile() override; 103 Profile* GetOffTheRecordProfile() override;
106 virtual void DestroyOffTheRecordProfile() override; 104 void DestroyOffTheRecordProfile() override;
107 virtual bool HasOffTheRecordProfile() override; 105 bool HasOffTheRecordProfile() override;
108 virtual Profile* GetOriginalProfile() override; 106 Profile* GetOriginalProfile() override;
109 virtual bool IsSupervised() override; 107 bool IsSupervised() override;
110 virtual history::TopSites* GetTopSites() override; 108 history::TopSites* GetTopSites() override;
111 virtual history::TopSites* GetTopSitesWithoutCreating() override; 109 history::TopSites* GetTopSitesWithoutCreating() override;
112 virtual ExtensionSpecialStoragePolicy* 110 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override;
113 GetExtensionSpecialStoragePolicy() override; 111 PrefService* GetPrefs() override;
114 virtual PrefService* GetPrefs() override; 112 chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs() override;
115 virtual chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs() override; 113 PrefService* GetOffTheRecordPrefs() override;
116 virtual PrefService* GetOffTheRecordPrefs() override; 114 net::URLRequestContextGetter* GetRequestContextForExtensions() override;
117 virtual net::URLRequestContextGetter* 115 net::SSLConfigService* GetSSLConfigService() override;
118 GetRequestContextForExtensions() override; 116 HostContentSettingsMap* GetHostContentSettingsMap() override;
119 virtual net::SSLConfigService* GetSSLConfigService() override; 117 bool IsSameProfile(Profile* profile) override;
120 virtual HostContentSettingsMap* GetHostContentSettingsMap() override; 118 base::Time GetStartTime() const override;
121 virtual bool IsSameProfile(Profile* profile) override; 119 net::URLRequestContextGetter* CreateRequestContext(
122 virtual base::Time GetStartTime() const override;
123 virtual net::URLRequestContextGetter* CreateRequestContext(
124 content::ProtocolHandlerMap* protocol_handlers, 120 content::ProtocolHandlerMap* protocol_handlers,
125 content::URLRequestInterceptorScopedVector request_interceptors) override; 121 content::URLRequestInterceptorScopedVector request_interceptors) override;
126 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 122 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
127 const base::FilePath& partition_path, 123 const base::FilePath& partition_path,
128 bool in_memory, 124 bool in_memory,
129 content::ProtocolHandlerMap* protocol_handlers, 125 content::ProtocolHandlerMap* protocol_handlers,
130 content::URLRequestInterceptorScopedVector request_interceptors) override; 126 content::URLRequestInterceptorScopedVector request_interceptors) override;
131 virtual base::FilePath last_selected_directory() override; 127 base::FilePath last_selected_directory() override;
132 virtual void set_last_selected_directory(const base::FilePath& path) override; 128 void set_last_selected_directory(const base::FilePath& path) override;
133 virtual chrome_browser_net::Predictor* GetNetworkPredictor() override; 129 chrome_browser_net::Predictor* GetNetworkPredictor() override;
134 virtual DevToolsNetworkController* GetDevToolsNetworkController() override; 130 DevToolsNetworkController* GetDevToolsNetworkController() override;
135 virtual void ClearNetworkingHistorySince( 131 void ClearNetworkingHistorySince(base::Time time,
136 base::Time time, 132 const base::Closure& completion) override;
137 const base::Closure& completion) override; 133 GURL GetHomePage() override;
138 virtual GURL GetHomePage() override; 134 bool WasCreatedByVersionOrLater(const std::string& version) override;
139 virtual bool WasCreatedByVersionOrLater(const std::string& version) override; 135 void SetExitType(ExitType exit_type) override;
140 virtual void SetExitType(ExitType exit_type) override; 136 ExitType GetLastSessionExitType() override;
141 virtual ExitType GetLastSessionExitType() override;
142 137
143 #if defined(OS_CHROMEOS) 138 #if defined(OS_CHROMEOS)
144 virtual void ChangeAppLocale(const std::string& locale, 139 virtual void ChangeAppLocale(const std::string& locale,
145 AppLocaleChangedVia) override; 140 AppLocaleChangedVia) override;
146 virtual void OnLogin() override; 141 virtual void OnLogin() override;
147 virtual void InitChromeOSPreferences() override; 142 virtual void InitChromeOSPreferences() override;
148 #endif // defined(OS_CHROMEOS) 143 #endif // defined(OS_CHROMEOS)
149 144
150 virtual PrefProxyConfigTracker* GetProxyConfigTracker() override; 145 PrefProxyConfigTracker* GetProxyConfigTracker() override;
151 146
152 private: 147 private:
153 #if defined(OS_CHROMEOS) 148 #if defined(OS_CHROMEOS)
154 friend class chromeos::KioskTest; 149 friend class chromeos::KioskTest;
155 friend class chromeos::SupervisedUserTestBase; 150 friend class chromeos::SupervisedUserTestBase;
156 #endif 151 #endif
157 friend class Profile; 152 friend class Profile;
158 friend class BetterSessionRestoreCrashTest; 153 friend class BetterSessionRestoreCrashTest;
159 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, 154 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest,
160 ProfilesLaunchedAfterCrash); 155 ProfilesLaunchedAfterCrash);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // components/keyed_service/content/browser_context_keyed_service_factory.* 289 // components/keyed_service/content/browser_context_keyed_service_factory.*
295 290
296 Profile::Delegate* delegate_; 291 Profile::Delegate* delegate_;
297 292
298 chrome_browser_net::Predictor* predictor_; 293 chrome_browser_net::Predictor* predictor_;
299 294
300 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 295 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
301 }; 296 };
302 297
303 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 298 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698