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

Unified Diff: components/precache/core/precache_fetcher.h

Issue 2037523002: Select precache resources based on field trial experiment group (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments, added more test Created 4 years, 6 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
« no previous file with comments | « components/precache/content/precache_manager.cc ('k') | components/precache/core/precache_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/core/precache_fetcher.h
diff --git a/components/precache/core/precache_fetcher.h b/components/precache/core/precache_fetcher.h
index 3ccb1946b9537b092f8e8a2d1fcdb8ea9f8dc78e..d6c3fa416de693070e9605100bb8e6a027b4842f 100644
--- a/components/precache/core/precache_fetcher.h
+++ b/components/precache/core/precache_fetcher.h
@@ -105,12 +105,12 @@ class PrecacheFetcher : public base::SupportsWeakPtr<PrecacheFetcher> {
// prioritized list of hosts that the user commonly visits. These hosts are
// used by a server side component to construct a list of resource URLs that
// the user is likely to fetch. Takes ownership of |unfinished_work|.
- PrecacheFetcher(
- net::URLRequestContextGetter* request_context,
- const GURL& config_url,
- const std::string& manifest_url_prefix,
- std::unique_ptr<PrecacheUnfinishedWork> unfinished_work,
- PrecacheDelegate* precache_delegate);
+ PrecacheFetcher(net::URLRequestContextGetter* request_context,
+ const GURL& config_url,
+ const std::string& manifest_url_prefix,
+ std::unique_ptr<PrecacheUnfinishedWork> unfinished_work,
+ uint32_t experiment_id,
+ PrecacheDelegate* precache_delegate);
virtual ~PrecacheFetcher();
@@ -179,6 +179,9 @@ class PrecacheFetcher : public base::SupportsWeakPtr<PrecacheFetcher> {
std::unique_ptr<PrecacheUnfinishedWork> unfinished_work_;
+ // The fieldtrial experiment ID.
+ uint32_t experiment_id_;
+
DISALLOW_COPY_AND_ASSIGN(PrecacheFetcher);
};
« no previous file with comments | « components/precache/content/precache_manager.cc ('k') | components/precache/core/precache_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698