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

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

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

Powered by Google App Engine
This is Rietveld 408576698