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

Side by Side Diff: net/base/stale_while_revalidate_experiment_domains.h

Issue 1433893002: Add StaleWhileRevalidateExperiment histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s-w-r-dafsa
Patch Set: Fix compile error. Created 5 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 unified diff | Download patch
« no previous file with comments | « net/BUILD.gn ('k') | net/base/stale_while_revalidate_experiment_domains.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_BASE_STALE_WHILE_REVALIDATE_EXPERIMENT_DOMAINS_H_
6 #define NET_BASE_STALE_WHILE_REVALIDATE_EXPERIMENT_DOMAINS_H_
7
8 #include "base/strings/string_piece.h"
9 #include "net/base/net_export.h"
10
11 namespace net {
12
13 // Returns true if |host| matches one of the domains of interest for
14 // stale-while-revalidate histograms. If "example.com" was in the list, then
15 // "example.com" would match, as would "www.example.com" and "a.b.example.com",
16 // but not "com" or "an-example.com". Trailing '.' characters on |host| are
17 // ignored. |host| is expected to be canonicalised to lowercase (as performed by
18 // GURL).
19 // TODO(ricea): Remove this in April 2016 or before. crbug.com/348877
20 NET_EXPORT bool IsHostInStaleWhileRevalidateExperimentDomain(
21 const base::StringPiece& host);
22
23 } // namespace net
24
25 #endif // NET_BASE_STALE_WHILE_REVALIDATE_EXPERIMENT_DOMAINS_H_
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | net/base/stale_while_revalidate_experiment_domains.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698