| 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 COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 5 #ifndef COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
| 6 #define COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 6 #define COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/version.h" | 11 #include "base/version.h" |
| 12 #include "components/version_info/version_info.h" |
| 12 | 13 |
| 13 namespace base { | 14 namespace base { |
| 14 class SequencedWorkerPool; | 15 class SequencedWorkerPool; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace net { | 18 namespace net { |
| 18 class URLRequestContextGetter; | 19 class URLRequestContextGetter; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace network_time { | 22 namespace network_time { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 // Returns a callback that when run returns the base::Version to use for | 41 // Returns a callback that when run returns the base::Version to use for |
| 41 // variations seed simulation. VariationsService guarantees that the callback | 42 // variations seed simulation. VariationsService guarantees that the callback |
| 42 // will be run on the pool returned by | 43 // will be run on the pool returned by |
| 43 // VariationsServiceClient::GetBlockingPool(). | 44 // VariationsServiceClient::GetBlockingPool(). |
| 44 virtual base::Callback<base::Version(void)> | 45 virtual base::Callback<base::Version(void)> |
| 45 GetVersionForSimulationCallback() = 0; | 46 GetVersionForSimulationCallback() = 0; |
| 46 | 47 |
| 47 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 48 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 48 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; | 49 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; |
| 49 | 50 |
| 51 // Gets the channel of the embedder. |
| 52 virtual version_info::Channel GetChannel() = 0; |
| 53 |
| 50 // Called from VariationsService::PerformPreMainMessageLoopStartup(). | 54 // Called from VariationsService::PerformPreMainMessageLoopStartup(). |
| 51 virtual void OnInitialStartup() {} | 55 virtual void OnInitialStartup() {} |
| 52 }; | 56 }; |
| 53 | 57 |
| 54 } // namespace chrome_variations | 58 } // namespace chrome_variations |
| 55 | 59 |
| 56 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 60 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
| OLD | NEW |