| 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" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // VariationsServiceClient::GetBlockingPool(). | 44 // VariationsServiceClient::GetBlockingPool(). |
| 45 virtual base::Callback<base::Version(void)> | 45 virtual base::Callback<base::Version(void)> |
| 46 GetVersionForSimulationCallback() = 0; | 46 GetVersionForSimulationCallback() = 0; |
| 47 | 47 |
| 48 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 48 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 49 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; | 49 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; |
| 50 | 50 |
| 51 // Gets the channel of the embedder. | 51 // Gets the channel of the embedder. |
| 52 virtual version_info::Channel GetChannel() = 0; | 52 virtual version_info::Channel GetChannel() = 0; |
| 53 | 53 |
| 54 // Returns the resource index corresponding to the given hash, or -1 if there |
| 55 // is no corresponding resource. |
| 56 virtual int GetIndexForResource(uint32_t hash) = 0; |
| 57 |
| 54 // Called from VariationsService::PerformPreMainMessageLoopStartup(). | 58 // Called from VariationsService::PerformPreMainMessageLoopStartup(). |
| 55 virtual void OnInitialStartup() {} | 59 virtual void OnInitialStartup() {} |
| 56 }; | 60 }; |
| 57 | 61 |
| 58 } // namespace chrome_variations | 62 } // namespace chrome_variations |
| 59 | 63 |
| 60 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 64 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
| OLD | NEW |