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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 isolated_media_request_context_getter_map_; 142 isolated_media_request_context_getter_map_;
143 ProfileImplIOData* const io_data_; 143 ProfileImplIOData* const io_data_;
144 144
145 Profile* const profile_; 145 Profile* const profile_;
146 146
147 mutable bool initialized_; 147 mutable bool initialized_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(Handle); 149 DISALLOW_COPY_AND_ASSIGN(Handle);
150 }; 150 };
151 151
152 virtual bool IsDataReductionProxyEnabled() const override; 152 bool IsDataReductionProxyEnabled() const override;
153 153
154 BooleanPrefMember* data_reduction_proxy_enabled() const { 154 BooleanPrefMember* data_reduction_proxy_enabled() const {
155 return &data_reduction_proxy_enabled_; 155 return &data_reduction_proxy_enabled_;
156 } 156 }
157 157
158 private: 158 private:
159 friend class base::RefCountedThreadSafe<ProfileImplIOData>; 159 friend class base::RefCountedThreadSafe<ProfileImplIOData>;
160 160
161 struct LazyParams { 161 struct LazyParams {
162 LazyParams(); 162 LazyParams();
163 ~LazyParams(); 163 ~LazyParams();
164 164
165 // All of these parameters are intended to be read on the IO thread. 165 // All of these parameters are intended to be read on the IO thread.
166 base::FilePath cookie_path; 166 base::FilePath cookie_path;
167 base::FilePath channel_id_path; 167 base::FilePath channel_id_path;
168 base::FilePath cache_path; 168 base::FilePath cache_path;
169 int cache_max_size; 169 int cache_max_size;
170 base::FilePath media_cache_path; 170 base::FilePath media_cache_path;
171 int media_cache_max_size; 171 int media_cache_max_size;
172 base::FilePath extensions_cookie_path; 172 base::FilePath extensions_cookie_path;
173 base::FilePath infinite_cache_path; 173 base::FilePath infinite_cache_path;
174 content::CookieStoreConfig::SessionCookieMode session_cookie_mode; 174 content::CookieStoreConfig::SessionCookieMode session_cookie_mode;
175 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy; 175 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy;
176 }; 176 };
177 177
178 ProfileImplIOData(); 178 ProfileImplIOData();
179 virtual ~ProfileImplIOData(); 179 ~ProfileImplIOData() override;
180 180
181 virtual void InitializeInternal( 181 void InitializeInternal(ProfileParams* profile_params,
182 ProfileParams* profile_params, 182 content::ProtocolHandlerMap* protocol_handlers,
183 content::ProtocolHandlerMap* protocol_handlers, 183 content::URLRequestInterceptorScopedVector
184 content::URLRequestInterceptorScopedVector request_interceptors) 184 request_interceptors) const override;
185 const override; 185 void InitializeExtensionsRequestContext(
186 virtual void InitializeExtensionsRequestContext(
187 ProfileParams* profile_params) const override; 186 ProfileParams* profile_params) const override;
188 virtual net::URLRequestContext* InitializeAppRequestContext( 187 net::URLRequestContext* InitializeAppRequestContext(
189 net::URLRequestContext* main_context, 188 net::URLRequestContext* main_context,
190 const StoragePartitionDescriptor& partition_descriptor, 189 const StoragePartitionDescriptor& partition_descriptor,
191 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> 190 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
192 protocol_handler_interceptor, 191 protocol_handler_interceptor,
193 content::ProtocolHandlerMap* protocol_handlers, 192 content::ProtocolHandlerMap* protocol_handlers,
194 content::URLRequestInterceptorScopedVector request_interceptors) 193 content::URLRequestInterceptorScopedVector request_interceptors)
195 const override; 194 const override;
196 virtual net::URLRequestContext* InitializeMediaRequestContext( 195 net::URLRequestContext* InitializeMediaRequestContext(
197 net::URLRequestContext* original_context, 196 net::URLRequestContext* original_context,
198 const StoragePartitionDescriptor& partition_descriptor) const override; 197 const StoragePartitionDescriptor& partition_descriptor) const override;
199 virtual net::URLRequestContext* 198 net::URLRequestContext* AcquireMediaRequestContext() const override;
200 AcquireMediaRequestContext() const override; 199 net::URLRequestContext* AcquireIsolatedAppRequestContext(
201 virtual net::URLRequestContext* AcquireIsolatedAppRequestContext(
202 net::URLRequestContext* main_context, 200 net::URLRequestContext* main_context,
203 const StoragePartitionDescriptor& partition_descriptor, 201 const StoragePartitionDescriptor& partition_descriptor,
204 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> 202 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
205 protocol_handler_interceptor, 203 protocol_handler_interceptor,
206 content::ProtocolHandlerMap* protocol_handlers, 204 content::ProtocolHandlerMap* protocol_handlers,
207 content::URLRequestInterceptorScopedVector request_interceptors) 205 content::URLRequestInterceptorScopedVector request_interceptors)
208 const override; 206 const override;
209 virtual net::URLRequestContext* 207 net::URLRequestContext* AcquireIsolatedMediaRequestContext(
210 AcquireIsolatedMediaRequestContext( 208 net::URLRequestContext* app_context,
211 net::URLRequestContext* app_context, 209 const StoragePartitionDescriptor& partition_descriptor) const override;
212 const StoragePartitionDescriptor& partition_descriptor)
213 const override;
214 210
215 // Deletes all network related data since |time|. It deletes transport 211 // Deletes all network related data since |time|. It deletes transport
216 // security state since |time| and also deletes HttpServerProperties data. 212 // security state since |time| and also deletes HttpServerProperties data.
217 // Works asynchronously, however if the |completion| callback is non-null, 213 // Works asynchronously, however if the |completion| callback is non-null,
218 // it will be posted on the UI thread once the removal process completes. 214 // it will be posted on the UI thread once the removal process completes.
219 void ClearNetworkingHistorySinceOnIOThread(base::Time time, 215 void ClearNetworkingHistorySinceOnIOThread(base::Time time,
220 const base::Closure& completion); 216 const base::Closure& completion);
221 217
222 // Lazy initialization params. 218 // Lazy initialization params.
223 mutable scoped_ptr<LazyParams> lazy_params_; 219 mutable scoped_ptr<LazyParams> lazy_params_;
(...skipping 21 matching lines...) Expand all
245 241
246 // Parameters needed for isolated apps. 242 // Parameters needed for isolated apps.
247 base::FilePath profile_path_; 243 base::FilePath profile_path_;
248 int app_cache_max_size_; 244 int app_cache_max_size_;
249 int app_media_cache_max_size_; 245 int app_media_cache_max_size_;
250 246
251 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 247 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
252 }; 248 };
253 249
254 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 250 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698