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

Side by Side Diff: chrome/browser/profiles/off_the_record_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 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 18 matching lines...) Expand all
29 // Providing this header file is for unit testing. 29 // Providing this header file is for unit testing.
30 // 30 //
31 //////////////////////////////////////////////////////////////////////////////// 31 ////////////////////////////////////////////////////////////////////////////////
32 class OffTheRecordProfileImpl : public Profile { 32 class OffTheRecordProfileImpl : public Profile {
33 public: 33 public:
34 explicit OffTheRecordProfileImpl(Profile* real_profile); 34 explicit OffTheRecordProfileImpl(Profile* real_profile);
35 virtual ~OffTheRecordProfileImpl(); 35 virtual ~OffTheRecordProfileImpl();
36 void Init(); 36 void Init();
37 37
38 // Profile implementation. 38 // Profile implementation.
39 virtual std::string GetProfileName() OVERRIDE; 39 virtual std::string GetProfileName() override;
40 virtual ProfileType GetProfileType() const OVERRIDE; 40 virtual ProfileType GetProfileType() const override;
41 virtual Profile* GetOffTheRecordProfile() OVERRIDE; 41 virtual Profile* GetOffTheRecordProfile() override;
42 virtual void DestroyOffTheRecordProfile() OVERRIDE; 42 virtual void DestroyOffTheRecordProfile() override;
43 virtual bool HasOffTheRecordProfile() OVERRIDE; 43 virtual bool HasOffTheRecordProfile() override;
44 virtual Profile* GetOriginalProfile() OVERRIDE; 44 virtual Profile* GetOriginalProfile() override;
45 virtual bool IsSupervised() OVERRIDE; 45 virtual bool IsSupervised() override;
46 virtual ExtensionSpecialStoragePolicy* 46 virtual ExtensionSpecialStoragePolicy*
47 GetExtensionSpecialStoragePolicy() OVERRIDE; 47 GetExtensionSpecialStoragePolicy() override;
48 virtual PrefService* GetPrefs() OVERRIDE; 48 virtual PrefService* GetPrefs() override;
49 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 49 virtual PrefService* GetOffTheRecordPrefs() override;
50 virtual net::URLRequestContextGetter* 50 virtual net::URLRequestContextGetter*
51 GetRequestContextForExtensions() OVERRIDE; 51 GetRequestContextForExtensions() override;
52 virtual net::URLRequestContextGetter* CreateRequestContext( 52 virtual net::URLRequestContextGetter* CreateRequestContext(
53 content::ProtocolHandlerMap* protocol_handlers, 53 content::ProtocolHandlerMap* protocol_handlers,
54 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; 54 content::URLRequestInterceptorScopedVector request_interceptors) override;
55 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 55 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
56 const base::FilePath& partition_path, 56 const base::FilePath& partition_path,
57 bool in_memory, 57 bool in_memory,
58 content::ProtocolHandlerMap* protocol_handlers, 58 content::ProtocolHandlerMap* protocol_handlers,
59 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; 59 content::URLRequestInterceptorScopedVector request_interceptors) override;
60 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 60 virtual net::SSLConfigService* GetSSLConfigService() override;
61 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 61 virtual HostContentSettingsMap* GetHostContentSettingsMap() override;
62 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 62 virtual bool IsSameProfile(Profile* profile) override;
63 virtual Time GetStartTime() const OVERRIDE; 63 virtual Time GetStartTime() const override;
64 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 64 virtual history::TopSites* GetTopSitesWithoutCreating() override;
65 virtual history::TopSites* GetTopSites() OVERRIDE; 65 virtual history::TopSites* GetTopSites() override;
66 virtual base::FilePath last_selected_directory() OVERRIDE; 66 virtual base::FilePath last_selected_directory() override;
67 virtual void set_last_selected_directory(const base::FilePath& path) OVERRIDE; 67 virtual void set_last_selected_directory(const base::FilePath& path) override;
68 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 68 virtual bool WasCreatedByVersionOrLater(const std::string& version) override;
69 virtual void SetExitType(ExitType exit_type) OVERRIDE; 69 virtual void SetExitType(ExitType exit_type) override;
70 virtual ExitType GetLastSessionExitType() OVERRIDE; 70 virtual ExitType GetLastSessionExitType() override;
71 71
72 #if defined(OS_CHROMEOS) 72 #if defined(OS_CHROMEOS)
73 virtual void ChangeAppLocale(const std::string& locale, 73 virtual void ChangeAppLocale(const std::string& locale,
74 AppLocaleChangedVia) OVERRIDE; 74 AppLocaleChangedVia) override;
75 virtual void OnLogin() OVERRIDE; 75 virtual void OnLogin() override;
76 virtual void InitChromeOSPreferences() OVERRIDE; 76 virtual void InitChromeOSPreferences() override;
77 #endif // defined(OS_CHROMEOS) 77 #endif // defined(OS_CHROMEOS)
78 78
79 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; 79 virtual PrefProxyConfigTracker* GetProxyConfigTracker() override;
80 80
81 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 81 virtual chrome_browser_net::Predictor* GetNetworkPredictor() override;
82 virtual DevToolsNetworkController* GetDevToolsNetworkController() OVERRIDE; 82 virtual DevToolsNetworkController* GetDevToolsNetworkController() override;
83 virtual void ClearNetworkingHistorySince( 83 virtual void ClearNetworkingHistorySince(
84 base::Time time, 84 base::Time time,
85 const base::Closure& completion) OVERRIDE; 85 const base::Closure& completion) override;
86 virtual GURL GetHomePage() OVERRIDE; 86 virtual GURL GetHomePage() override;
87 87
88 // content::BrowserContext implementation: 88 // content::BrowserContext implementation:
89 virtual base::FilePath GetPath() const OVERRIDE; 89 virtual base::FilePath GetPath() const override;
90 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; 90 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override;
91 virtual bool IsOffTheRecord() const OVERRIDE; 91 virtual bool IsOffTheRecord() const override;
92 virtual content::DownloadManagerDelegate* 92 virtual content::DownloadManagerDelegate*
93 GetDownloadManagerDelegate() OVERRIDE; 93 GetDownloadManagerDelegate() override;
94 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 94 virtual net::URLRequestContextGetter* GetRequestContext() override;
95 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 95 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
96 int renderer_child_id) OVERRIDE; 96 int renderer_child_id) override;
97 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 97 virtual net::URLRequestContextGetter* GetMediaRequestContext() override;
98 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 98 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
99 int renderer_child_id) OVERRIDE; 99 int renderer_child_id) override;
100 virtual net::URLRequestContextGetter* 100 virtual net::URLRequestContextGetter*
101 GetMediaRequestContextForStoragePartition( 101 GetMediaRequestContextForStoragePartition(
102 const base::FilePath& partition_path, 102 const base::FilePath& partition_path,
103 bool in_memory) OVERRIDE; 103 bool in_memory) override;
104 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 104 virtual content::ResourceContext* GetResourceContext() override;
105 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; 105 virtual content::BrowserPluginGuestManager* GetGuestManager() override;
106 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 106 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
107 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; 107 virtual content::PushMessagingService* GetPushMessagingService() override;
108 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE; 108 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
109 109
110 private: 110 private:
111 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap); 111 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap);
112 void InitIoData(); 112 void InitIoData();
113 void InitHostZoomMap(); 113 void InitHostZoomMap();
114 114
115 #if defined(OS_ANDROID) || defined(OS_IOS) 115 #if defined(OS_ANDROID) || defined(OS_IOS)
116 void UseSystemProxy(); 116 void UseSystemProxy();
117 #endif // defined(OS_ANDROID) || defined(OS_IOS) 117 #endif // defined(OS_ANDROID) || defined(OS_IOS)
118 118
(...skipping 17 matching lines...) Expand all
136 base::FilePath last_selected_directory_; 136 base::FilePath last_selected_directory_;
137 137
138 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 138 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
139 139
140 scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_; 140 scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 142 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
143 }; 143 };
144 144
145 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 145 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698