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

Side by Side Diff: chrome/browser/metrics/variations/variations_service.h

Issue 23097007: Create variations target that depends on base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_
6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ 6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/metrics/field_trial.h" 13 #include "base/metrics/field_trial.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/metrics/proto/study.pb.h"
16 #include "chrome/browser/metrics/proto/trials_seed.pb.h"
17 #include "chrome/browser/metrics/variations/variations_request_scheduler.h" 15 #include "chrome/browser/metrics/variations/variations_request_scheduler.h"
18 #include "chrome/browser/web_resource/resource_request_allowed_notifier.h" 16 #include "chrome/browser/web_resource/resource_request_allowed_notifier.h"
19 #include "chrome/common/chrome_version_info.h" 17 #include "chrome/common/chrome_version_info.h"
20 #include "net/url_request/url_fetcher_delegate.h" 18 #include "net/url_request/url_fetcher_delegate.h"
21 #include "url/gurl.h" 19 #include "url/gurl.h"
22 20
23 #if defined(OS_WIN) 21 #if defined(OS_WIN)
24 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h" 22 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h"
25 #endif 23 #endif
26 24
27 class PrefService; 25 class PrefService;
28 class PrefRegistrySimple; 26 class PrefRegistrySimple;
29 27
30 namespace chrome_variations { 28 namespace chrome_variations {
31 29
30 class TrialsSeed;
31
32 // Used to setup field trials based on stored variations seed data, and fetch 32 // Used to setup field trials based on stored variations seed data, and fetch
33 // new seed data from the variations server. 33 // new seed data from the variations server.
34 class VariationsService 34 class VariationsService
35 : public net::URLFetcherDelegate, 35 : public net::URLFetcherDelegate,
36 public ResourceRequestAllowedNotifier::Observer { 36 public ResourceRequestAllowedNotifier::Observer {
37 public: 37 public:
38 virtual ~VariationsService(); 38 virtual ~VariationsService();
39 39
40 // Creates field trials based on Variations Seed loaded from local prefs. If 40 // Creates field trials based on Variations Seed loaded from local prefs. If
41 // there is a problem loading the seed data, all trials specified by the seed 41 // there is a problem loading the seed data, all trials specified by the seed
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Helper that handles synchronizing Variations with the Registry. 153 // Helper that handles synchronizing Variations with the Registry.
154 VariationsRegistrySyncer registry_syncer_; 154 VariationsRegistrySyncer registry_syncer_;
155 #endif 155 #endif
156 156
157 DISALLOW_COPY_AND_ASSIGN(VariationsService); 157 DISALLOW_COPY_AND_ASSIGN(VariationsService);
158 }; 158 };
159 159
160 } // namespace chrome_variations 160 } // namespace chrome_variations
161 161
162 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ 162 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698