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

Side by Side Diff: components/variations/variations_http_header_provider.h

Issue 421663003: Move variations component code to variations namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix Created 6 years, 4 months 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/variations/variations_associated_data_unittest.cc ('k') | components/variations/variations_http_header_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698