| 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 CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ |
| 6 #define CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ | 6 #define CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "components/variations/variations_service_client.h" | 9 #include "components/variations/variations_service_client.h" |
| 10 | 10 |
| 11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 12 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h" | 12 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h" |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 // ChromeVariationsServiceClient provides an implementation of | 15 // ChromeVariationsServiceClient provides an implementation of |
| 16 // VariationsServiceClient that depends on chrome/. | 16 // VariationsServiceClient that depends on chrome/. |
| 17 class ChromeVariationsServiceClient | 17 class ChromeVariationsServiceClient |
| 18 : public chrome_variations::VariationsServiceClient { | 18 : public chrome_variations::VariationsServiceClient { |
| 19 public: | 19 public: |
| 20 ChromeVariationsServiceClient(); | 20 ChromeVariationsServiceClient(); |
| 21 ~ChromeVariationsServiceClient() override; | 21 ~ChromeVariationsServiceClient() override; |
| 22 | 22 |
| 23 // chrome_variations::VariationsServiceClient: | 23 // chrome_variations::VariationsServiceClient: |
| 24 std::string GetApplicationLocale() override; | 24 std::string GetApplicationLocale() override; |
| 25 base::SequencedWorkerPool* GetBlockingPool() override; |
| 25 net::URLRequestContextGetter* GetURLRequestContext() override; | 26 net::URLRequestContextGetter* GetURLRequestContext() override; |
| 26 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override; | 27 network_time::NetworkTimeTracker* GetNetworkTimeTracker() override; |
| 27 void OnInitialStartup() override; | 28 void OnInitialStartup() override; |
| 28 | 29 |
| 29 private: | 30 private: |
| 30 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
| 31 // Starts syncing Google Update Variation IDs with the registry. | 32 // Starts syncing Google Update Variation IDs with the registry. |
| 32 void StartGoogleUpdateRegistrySync(); | 33 void StartGoogleUpdateRegistrySync(); |
| 33 | 34 |
| 34 // Helper that handles synchronizing Variations with the Registry. | 35 // Helper that handles synchronizing Variations with the Registry. |
| 35 chrome_variations::VariationsRegistrySyncer registry_syncer_; | 36 chrome_variations::VariationsRegistrySyncer registry_syncer_; |
| 36 #endif | 37 #endif |
| 37 | 38 |
| 38 DISALLOW_COPY_AND_ASSIGN(ChromeVariationsServiceClient); | 39 DISALLOW_COPY_AND_ASSIGN(ChromeVariationsServiceClient); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 #endif // CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ | 42 #endif // CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_ |
| OLD | NEW |