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

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

Issue 2388253002: Use the previews black list for offline previews (Closed)
Patch Set: tbansal mmenke comments Created 4 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/callback.h" 8 #include "base/callback.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 class FtpTransactionFactory; 35 class FtpTransactionFactory;
36 class HttpNetworkSession; 36 class HttpNetworkSession;
37 class HttpServerProperties; 37 class HttpServerProperties;
38 class HttpServerPropertiesManager; 38 class HttpServerPropertiesManager;
39 class HttpTransactionFactory; 39 class HttpTransactionFactory;
40 class ProxyConfig; 40 class ProxyConfig;
41 class SdchManager; 41 class SdchManager;
42 class SdchOwner; 42 class SdchOwner;
43 } // namespace net 43 } // namespace net
44 44
45 namespace previews {
46 class PreviewsIOData;
47 }
48
45 namespace storage { 49 namespace storage {
46 class SpecialStoragePolicy; 50 class SpecialStoragePolicy;
47 } // namespace storage 51 } // namespace storage
48 52
49 class ProfileImplIOData : public ProfileIOData { 53 class ProfileImplIOData : public ProfileIOData {
50 public: 54 public:
51 class Handle { 55 class Handle {
52 public: 56 public:
53 explicit Handle(Profile* profile); 57 explicit Handle(Profile* profile);
54 ~Handle(); 58 ~Handle();
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> 196 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
193 protocol_handler_interceptor, 197 protocol_handler_interceptor,
194 content::ProtocolHandlerMap* protocol_handlers, 198 content::ProtocolHandlerMap* protocol_handlers,
195 content::URLRequestInterceptorScopedVector request_interceptors) 199 content::URLRequestInterceptorScopedVector request_interceptors)
196 const override; 200 const override;
197 net::URLRequestContext* AcquireIsolatedMediaRequestContext( 201 net::URLRequestContext* AcquireIsolatedMediaRequestContext(
198 net::URLRequestContext* app_context, 202 net::URLRequestContext* app_context,
199 const StoragePartitionDescriptor& partition_descriptor) const override; 203 const StoragePartitionDescriptor& partition_descriptor) const override;
200 chrome_browser_net::Predictor* GetPredictor() override; 204 chrome_browser_net::Predictor* GetPredictor() override;
201 205
206 previews::PreviewsIOData* previews_io_data() const {
207 return previews_io_data_.get();
208 }
mmenke 2016/10/06 16:57:45 I don't think we need this method - it's not used
RyanSturm 2016/10/06 17:07:43 Done.
209
210 void set_previews_io_data(
211 std::unique_ptr<previews::PreviewsIOData> previews_io_data) const;
mmenke 2016/10/06 16:57:45 Again, don't think we need this - can just set it
RyanSturm 2016/10/06 17:07:43 Good point. Didn't think enough about the refactor
212
202 // Deletes all network related data since |time|. It deletes transport 213 // Deletes all network related data since |time|. It deletes transport
203 // security state since |time| and also deletes HttpServerProperties data. 214 // security state since |time| and also deletes HttpServerProperties data.
204 // Works asynchronously, however if the |completion| callback is non-null, 215 // Works asynchronously, however if the |completion| callback is non-null,
205 // it will be posted on the UI thread once the removal process completes. 216 // it will be posted on the UI thread once the removal process completes.
206 void ClearNetworkingHistorySinceOnIOThread(base::Time time, 217 void ClearNetworkingHistorySinceOnIOThread(base::Time time,
207 const base::Closure& completion); 218 const base::Closure& completion);
208 219
209 mutable std::unique_ptr< 220 mutable std::unique_ptr<
210 data_reduction_proxy::DataReductionProxyNetworkDelegate> 221 data_reduction_proxy::DataReductionProxyNetworkDelegate>
211 network_delegate_; 222 network_delegate_;
(...skipping 20 matching lines...) Expand all
232 243
233 mutable std::unique_ptr<net::URLRequestJobFactory> main_job_factory_; 244 mutable std::unique_ptr<net::URLRequestJobFactory> main_job_factory_;
234 mutable std::unique_ptr<net::URLRequestJobFactory> extensions_job_factory_; 245 mutable std::unique_ptr<net::URLRequestJobFactory> extensions_job_factory_;
235 246
236 mutable std::unique_ptr<domain_reliability::DomainReliabilityMonitor> 247 mutable std::unique_ptr<domain_reliability::DomainReliabilityMonitor>
237 domain_reliability_monitor_; 248 domain_reliability_monitor_;
238 249
239 mutable std::unique_ptr<net::SdchManager> sdch_manager_; 250 mutable std::unique_ptr<net::SdchManager> sdch_manager_;
240 mutable std::unique_ptr<net::SdchOwner> sdch_policy_; 251 mutable std::unique_ptr<net::SdchOwner> sdch_policy_;
241 252
253 mutable std::unique_ptr<previews::PreviewsIOData> previews_io_data_;
254
242 // Parameters needed for isolated apps. 255 // Parameters needed for isolated apps.
243 base::FilePath profile_path_; 256 base::FilePath profile_path_;
244 int app_cache_max_size_; 257 int app_cache_max_size_;
245 int app_media_cache_max_size_; 258 int app_media_cache_max_size_;
246 259
247 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 260 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
248 }; 261 };
249 262
250 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 263 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698