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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_impl_io_data.h
diff --git a/chrome/browser/profiles/profile_impl_io_data.h b/chrome/browser/profiles/profile_impl_io_data.h
index bb7070509681247c68a226986f4da9590bd1937a..ea15d7bbd358c29cbcda81fb700e2c88089a1567 100644
--- a/chrome/browser/profiles/profile_impl_io_data.h
+++ b/chrome/browser/profiles/profile_impl_io_data.h
@@ -35,20 +35,24 @@ class CookieStore;
class FtpTransactionFactory;
class HttpNetworkSession;
class HttpServerProperties;
class HttpServerPropertiesManager;
class HttpTransactionFactory;
class ProxyConfig;
class SdchManager;
class SdchOwner;
} // namespace net
+namespace previews {
+class PreviewsIOData;
+}
+
namespace storage {
class SpecialStoragePolicy;
} // namespace storage
class ProfileImplIOData : public ProfileIOData {
public:
class Handle {
public:
explicit Handle(Profile* profile);
~Handle();
@@ -192,20 +196,27 @@ class ProfileImplIOData : public ProfileIOData {
std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
protocol_handler_interceptor,
content::ProtocolHandlerMap* protocol_handlers,
content::URLRequestInterceptorScopedVector request_interceptors)
const override;
net::URLRequestContext* AcquireIsolatedMediaRequestContext(
net::URLRequestContext* app_context,
const StoragePartitionDescriptor& partition_descriptor) const override;
chrome_browser_net::Predictor* GetPredictor() override;
+ previews::PreviewsIOData* previews_io_data() const {
+ return previews_io_data_.get();
+ }
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.
+
+ void set_previews_io_data(
+ 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
+
// Deletes all network related data since |time|. It deletes transport
// security state since |time| and also deletes HttpServerProperties data.
// Works asynchronously, however if the |completion| callback is non-null,
// it will be posted on the UI thread once the removal process completes.
void ClearNetworkingHistorySinceOnIOThread(base::Time time,
const base::Closure& completion);
mutable std::unique_ptr<
data_reduction_proxy::DataReductionProxyNetworkDelegate>
network_delegate_;
@@ -232,19 +243,21 @@ class ProfileImplIOData : public ProfileIOData {
mutable std::unique_ptr<net::URLRequestJobFactory> main_job_factory_;
mutable std::unique_ptr<net::URLRequestJobFactory> extensions_job_factory_;
mutable std::unique_ptr<domain_reliability::DomainReliabilityMonitor>
domain_reliability_monitor_;
mutable std::unique_ptr<net::SdchManager> sdch_manager_;
mutable std::unique_ptr<net::SdchOwner> sdch_policy_;
+ mutable std::unique_ptr<previews::PreviewsIOData> previews_io_data_;
+
// Parameters needed for isolated apps.
base::FilePath profile_path_;
int app_cache_max_size_;
int app_media_cache_max_size_;
DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
};
#endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698