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

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

Issue 387393002: [Variations] Renaming ChromeVariations to ClientVariations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 5 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 10 matching lines...) Expand all
21 namespace net { 21 namespace net {
22 class HttpRequestHeaders; 22 class HttpRequestHeaders;
23 } 23 }
24 24
25 class GURL; 25 class GURL;
26 26
27 template <typename T> struct DefaultSingletonTraits; 27 template <typename T> struct DefaultSingletonTraits;
28 28
29 namespace variations { 29 namespace variations {
30 30
31 // A helper class for maintaining Chrome experiments and metrics state 31 // A helper class for maintaining client experiments and metrics state
32 // transmitted in custom HTTP request headers. 32 // transmitted in custom HTTP request headers.
33 // This class is a thread-safe singleton. 33 // This class is a thread-safe singleton.
34 class VariationsHttpHeaderProvider : base::FieldTrialList::Observer { 34 class VariationsHttpHeaderProvider : base::FieldTrialList::Observer {
35 public: 35 public:
36 static VariationsHttpHeaderProvider* GetInstance(); 36 static VariationsHttpHeaderProvider* GetInstance();
37 37
38 // Adds Chrome experiment and metrics state as custom headers to |headers|. 38 // Adds Chrome experiment and metrics state as custom headers to |headers|.
39 // Some headers may not be set given the |incognito| mode or whether 39 // Some headers may not be set given the |incognito| mode or whether
40 // the user has |uma_enabled|. Also, we never transmit headers to non-Google 40 // the user has |uma_enabled|. Also, we never transmit headers to non-Google
41 // sites, which is checked based on the destination |url|. 41 // sites, which is checked based on the destination |url|.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 std::set<chrome_variations::VariationID> default_trigger_id_set_; 104 std::set<chrome_variations::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/proto/client_variations.proto ('k') | components/variations/variations_http_header_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698