| OLD | NEW |
| 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 13 matching lines...) Expand all Loading... |
| 24 bool incognito, | 24 bool incognito, |
| 25 bool uma_enabled, | 25 bool uma_enabled, |
| 26 net::HttpRequestHeaders* headers); | 26 net::HttpRequestHeaders* headers); |
| 27 | 27 |
| 28 // Returns the HTTP header names which are added by AppendVariationHeaders(). | 28 // Returns the HTTP header names which are added by AppendVariationHeaders(). |
| 29 std::set<std::string> GetVariationHeaderNames(); | 29 std::set<std::string> GetVariationHeaderNames(); |
| 30 | 30 |
| 31 namespace internal { | 31 namespace internal { |
| 32 | 32 |
| 33 // Checks whether variation headers should be appended to requests to the | 33 // Checks whether variation headers should be appended to requests to the |
| 34 // specified |url|. Returns true for google.<TLD> and youtube.<TLD> URLs. | 34 // specified |url|. Returns true for google.<TLD> and youtube.<TLD> URLs with |
| 35 // the https scheme. |
| 35 bool ShouldAppendVariationHeaders(const GURL& url); | 36 bool ShouldAppendVariationHeaders(const GURL& url); |
| 36 | 37 |
| 37 } // namespace internal | 38 } // namespace internal |
| 38 | 39 |
| 39 } // namespace variations | 40 } // namespace variations |
| 40 | 41 |
| 41 #endif // COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_ | 42 #endif // COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_ |
| OLD | NEW |