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

Side by Side Diff: components/variations/net/variations_http_headers.h

Issue 2587513002: Switch variations http headers to only be reported over https. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/variations/net/variations_http_headers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_ 5 #ifndef COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_
6 #define COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_ 6 #define COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 bool uma_enabled, 28 bool uma_enabled,
29 bool is_signed_in, 29 bool is_signed_in,
30 net::HttpRequestHeaders* headers); 30 net::HttpRequestHeaders* headers);
31 31
32 // Returns the HTTP header names which are added by AppendVariationHeaders(). 32 // Returns the HTTP header names which are added by AppendVariationHeaders().
33 std::set<std::string> GetVariationHeaderNames(); 33 std::set<std::string> GetVariationHeaderNames();
34 34
35 namespace internal { 35 namespace internal {
36 36
37 // Checks whether variation headers should be appended to requests to the 37 // Checks whether variation headers should be appended to requests to the
38 // specified |url|. Returns true for google.<TLD> and youtube.<TLD> URLs. 38 // specified |url|. Returns true for google.<TLD> and youtube.<TLD> URLs with
39 // the https scheme.
39 bool ShouldAppendVariationHeaders(const GURL& url); 40 bool ShouldAppendVariationHeaders(const GURL& url);
40 41
41 } // namespace internal 42 } // namespace internal
42 43
43 } // namespace variations 44 } // namespace variations
44 45
45 #endif // COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_ 46 #endif // COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_
OLDNEW
« no previous file with comments | « no previous file | components/variations/net/variations_http_headers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698