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

Unified Diff: components/network_time/network_time_tracker.h

Issue 2448943004: Add experimental feature info to certificate reports (Closed)
Patch Set: battre comment Created 4 years, 1 month 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/network_time/network_time_test_utils.cc ('k') | components/network_time/network_time_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/network_time/network_time_tracker.h
diff --git a/components/network_time/network_time_tracker.h b/components/network_time/network_time_tracker.h
index e296043db1659551c3256e60f4141a09c2d0e9ee..ea5bbc5b91ab26e7235f095a9bc0fcbabae5c522 100644
--- a/components/network_time/network_time_tracker.h
+++ b/components/network_time/network_time_tracker.h
@@ -77,6 +77,19 @@ class NetworkTimeTracker : public net::URLFetcherDelegate {
NETWORK_TIME_SUBSEQUENT_SYNC_PENDING,
};
+ // Describes the behavior of fetches to the network time service.
+ enum FetchBehavior {
+ // Only used in case of an unrecognize Finch experiment parameter.
+ FETCH_BEHAVIOR_UNKNOWN,
+ // Time queries will be issued in the background as needed.
+ FETCHES_IN_BACKGROUND_ONLY,
+ // Time queries will not be issued except when StartTimeFetch() is called.
+ FETCHES_ON_DEMAND_ONLY,
+ // Time queries will be issued both in the background as needed and also
+ // on-demand.
+ FETCHES_IN_BACKGROUND_AND_ON_DEMAND,
+ };
+
static void RegisterPrefs(PrefRegistrySimple* registry);
// Constructor. Arguments may be stubbed out for tests. |getter|, if not
@@ -124,6 +137,9 @@ class NetworkTimeTracker : public net::URLFetcherDelegate {
base::TimeDelta latency,
base::TimeTicks post_time);
+ bool AreTimeFetchesEnabled() const;
+ FetchBehavior GetFetchBehavior() const;
+
void SetMaxResponseSizeForTesting(size_t limit);
void SetPublicKeyForTesting(const base::StringPiece& key);
« no previous file with comments | « components/network_time/network_time_test_utils.cc ('k') | components/network_time/network_time_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698