| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_VARIATIONS_HTTP_HEADER_PROVIDER_H_ | 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_HTTP_HEADER_PROVIDER_H_ |
| 6 #define COMPONENTS_VARIATIONS_VARIATIONS_HTTP_HEADER_PROVIDER_H_ | 6 #define COMPONENTS_VARIATIONS_VARIATIONS_HTTP_HEADER_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // Guards |variation_ids_cache_initialized_|, |variation_ids_set_| and | 90 // Guards |variation_ids_cache_initialized_|, |variation_ids_set_| and |
| 91 // |variation_ids_header_|. | 91 // |variation_ids_header_|. |
| 92 base::Lock lock_; | 92 base::Lock lock_; |
| 93 | 93 |
| 94 // Whether or not we've initialized the cache. | 94 // Whether or not we've initialized the cache. |
| 95 bool variation_ids_cache_initialized_; | 95 bool variation_ids_cache_initialized_; |
| 96 | 96 |
| 97 // Keep a cache of variation IDs that are transmitted in headers to Google. | 97 // Keep a cache of variation IDs that are transmitted in headers to Google. |
| 98 // This consists of a list of valid IDs, and the actual transmitted header. | 98 // This consists of a list of valid IDs, and the actual transmitted header. |
| 99 std::set<chrome_variations::VariationID> variation_ids_set_; | 99 std::set<VariationID> variation_ids_set_; |
| 100 std::set<chrome_variations::VariationID> variation_trigger_ids_set_; | 100 std::set<VariationID> variation_trigger_ids_set_; |
| 101 | 101 |
| 102 // Provides the google experiment ids forced from command line. | 102 // Provides the google experiment ids forced from command line. |
| 103 std::set<chrome_variations::VariationID> default_variation_ids_set_; | 103 std::set<VariationID> default_variation_ids_set_; |
| 104 std::set<chrome_variations::VariationID> default_trigger_id_set_; | 104 std::set<VariationID> default_trigger_id_set_; |
| 105 | 105 |
| 106 std::string variation_ids_header_; | 106 std::string variation_ids_header_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(VariationsHttpHeaderProvider); | 108 DISALLOW_COPY_AND_ASSIGN(VariationsHttpHeaderProvider); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace variations | 111 } // namespace variations |
| 112 | 112 |
| 113 #endif // COMPONENTS_VARIATIONS_VARIATIONS_HTTP_HEADER_PROVIDER_H_ | 113 #endif // COMPONENTS_VARIATIONS_VARIATIONS_HTTP_HEADER_PROVIDER_H_ |
| OLD | NEW |