| 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 chrome_variations { | 10 namespace chrome_variations { |
| 11 | 11 |
| 12 // An abstraction of operations that depend on the embedder's (e.g. Chrome) | 12 // An abstraction of operations that depend on the embedder's (e.g. Chrome) |
| 13 // environment. | 13 // environment. |
| 14 class VariationsServiceClient { | 14 class VariationsServiceClient { |
| 15 public: | 15 public: |
| 16 virtual ~VariationsServiceClient() {} | 16 virtual ~VariationsServiceClient() {} |
| 17 | 17 |
| 18 // Returns the current application locale (e.g. "en-US"). | 18 // Returns the current application locale (e.g. "en-US"). |
| 19 virtual std::string GetApplicationLocale() = 0; | 19 virtual std::string GetApplicationLocale() = 0; |
| 20 |
| 21 // Called from VariationsService::PerformInitialStartup(). |
| 22 virtual void OnInitialStartup() {} |
| 20 }; | 23 }; |
| 21 | 24 |
| 22 } // namespace chrome_variations | 25 } // namespace chrome_variations |
| 23 | 26 |
| 24 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ | 27 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ |
| OLD | NEW |