| 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_VARIATIONS_SERVICE_CLIENT_H_ | 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ |
| 6 #define COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ | 6 #define COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace net { |
| 11 class URLRequestContextGetter; |
| 12 } |
| 13 |
| 14 namespace network_time { |
| 15 class NetworkTimeTracker; |
| 16 } |
| 17 |
| 10 namespace chrome_variations { | 18 namespace chrome_variations { |
| 11 | 19 |
| 12 // An abstraction of operations that depend on the embedder's (e.g. Chrome) | 20 // An abstraction of operations that depend on the embedder's (e.g. Chrome) |
| 13 // environment. | 21 // environment. |
| 14 class VariationsServiceClient { | 22 class VariationsServiceClient { |
| 15 public: | 23 public: |
| 16 virtual ~VariationsServiceClient() {} | 24 virtual ~VariationsServiceClient() {} |
| 17 | 25 |
| 18 // Returns the current application locale (e.g. "en-US"). | 26 // Returns the current application locale (e.g. "en-US"). |
| 19 virtual std::string GetApplicationLocale() = 0; | 27 virtual std::string GetApplicationLocale() = 0; |
| 28 |
| 29 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 30 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; |
| 20 }; | 31 }; |
| 21 | 32 |
| 22 } // namespace chrome_variations | 33 } // namespace chrome_variations |
| 23 | 34 |
| 24 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ | 35 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ |
| OLD | NEW |