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

Unified Diff: components/precache/content/precache_manager.h

Issue 2544613003: Disable precache if data_reduction_proxy enabled. (Closed)
Patch Set: Rebase. Created 4 years 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
« no previous file with comments | « components/precache/content/DEPS ('k') | components/precache/content/precache_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/content/precache_manager.h
diff --git a/components/precache/content/precache_manager.h b/components/precache/content/precache_manager.h
index e6bcc8094ab5e9a9bd5abed331d49c997cb20e85..507aeba209fc17b93f185b7702e14a9112ac7e3c 100644
--- a/components/precache/content/precache_manager.h
+++ b/components/precache/content/precache_manager.h
@@ -33,6 +33,10 @@ namespace content {
class BrowserContext;
}
+namespace data_reduction_proxy {
+class DataReductionProxySettings;
+}
+
namespace history {
class HistoryService;
}
@@ -67,8 +71,10 @@ class PrecacheManager : public KeyedService,
typedef base::Callback<void(bool)> PrecacheCompletionCallback;
PrecacheManager(content::BrowserContext* browser_context,
- const syncer::SyncService* const sync_service,
- const history::HistoryService* const history_service,
+ const syncer::SyncService* sync_service,
+ const history::HistoryService* history_service,
+ const data_reduction_proxy::DataReductionProxySettings*
+ data_reduction_proxy_settings,
const base::FilePath& db_path,
std::unique_ptr<PrecacheDatabase> precache_database);
~PrecacheManager() override;
@@ -188,6 +194,11 @@ class PrecacheManager : public KeyedService,
// the list of top hosts. May be null.
const history::HistoryService* const history_service_;
+ // The data reduction proxy settings object corresponding to the browser
+ // context. Used to determine if the proxy is enabled.
+ const data_reduction_proxy::DataReductionProxySettings* const
+ data_reduction_proxy_settings_;
+
// The PrecacheFetcher used to precache resources. Should only be used on the
// UI thread.
std::unique_ptr<PrecacheFetcher> precache_fetcher_;
« no previous file with comments | « components/precache/content/DEPS ('k') | components/precache/content/precache_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698