| 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/strings/string16.h" |
| 11 #include "base/version.h" | 12 #include "base/version.h" |
| 12 #include "components/version_info/version_info.h" | 13 #include "components/version_info/version_info.h" |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class SequencedWorkerPool; | 16 class SequencedWorkerPool; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| 19 class URLRequestContextGetter; | 20 class URLRequestContextGetter; |
| 20 } | 21 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 44 // VariationsServiceClient::GetBlockingPool(). | 45 // VariationsServiceClient::GetBlockingPool(). |
| 45 virtual base::Callback<base::Version(void)> | 46 virtual base::Callback<base::Version(void)> |
| 46 GetVersionForSimulationCallback() = 0; | 47 GetVersionForSimulationCallback() = 0; |
| 47 | 48 |
| 48 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 49 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 49 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; | 50 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; |
| 50 | 51 |
| 51 // Gets the channel of the embedder. | 52 // Gets the channel of the embedder. |
| 52 virtual version_info::Channel GetChannel() = 0; | 53 virtual version_info::Channel GetChannel() = 0; |
| 53 | 54 |
| 55 // Allows the embedder to override the string resource specified by |hash| |
| 56 // with |string| in the resource bundle if desired. |
| 57 virtual void OverrideUIString(uint32_t hash, |
| 58 const base::string16& string) = 0; |
| 59 |
| 54 // Called from VariationsService::PerformPreMainMessageLoopStartup(). | 60 // Called from VariationsService::PerformPreMainMessageLoopStartup(). |
| 55 virtual void OnInitialStartup() {} | 61 virtual void OnInitialStartup() {} |
| 56 }; | 62 }; |
| 57 | 63 |
| 58 } // namespace chrome_variations | 64 } // namespace chrome_variations |
| 59 | 65 |
| 60 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 66 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
| OLD | NEW |