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

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

Issue 1303973009: [DO NOT COMMIT] Re-use the dafsa code for s-w-r histograms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correct the build files. Created 5 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 unified diff | Download patch
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_SWR_HISTOGRAM_DOMAINS_SWR_HISTOGRAM_DOMAINS_H_
6 #define NET_BASE_SWR_HISTOGRAM_DOMAINS_SWR_HISTOGRAM_DOMAINS_H_
7
8 #include "base/strings/string_piece.h"
9 #include "net/base/net_export.h"
10
11 namespace net {
12
13 namespace swr_histogram_domains {
14
15 // Returns true if |host| matches one of the domains of interest for
16 // stale-while-revalidate histograms. If "example.com" was in the list, then
17 // "example.com" would match, as would "www.example.com" and "a.b.example.com",
18 // but not "com" or "an-example.com". Trailing '.' characters on |host| are
19 // ignored. |host| is expected to have be canonicalised to lowercase (as
tyoshino (SeeGerritForStatus) 2015/11/04 08:34:07 remove "have"?
Adam Rice 2015/11/05 05:30:40 Done.
20 // performed by GURL).
21 bool NET_EXPORT IsHostInSWRHistogramDomain(const base::StringPiece& host);
22
23 } // namespace swr_histogram_domains
24
25 } // namespace net
26
27 #endif // NET_BASE_SWR_HISTOGRAM_DOMAINS_SWR_HISTOGRAM_DOMAINS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698