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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; | 50 virtual network_time::NetworkTimeTracker* GetNetworkTimeTracker() = 0; |
51 | 51 |
52 // Gets the channel of the embedder. | 52 // Gets the channel of the embedder. |
53 virtual version_info::Channel GetChannel() = 0; | 53 virtual version_info::Channel GetChannel() = 0; |
54 | 54 |
55 // Returns whether the embedder overrides the value of the restrict parameter. | 55 // Returns whether the embedder overrides the value of the restrict parameter. |
56 // |parameter| is an out-param that will contain the value of the restrict | 56 // |parameter| is an out-param that will contain the value of the restrict |
57 // parameter if true is returned. | 57 // parameter if true is returned. |
58 virtual bool OverridesRestrictParameter(std::string* parameter) = 0; | 58 virtual bool OverridesRestrictParameter(std::string* parameter) = 0; |
59 | 59 |
60 // Allows the embedder to override the string resource specified by |hash| | |
61 // with |string| in the resource bundle if desired. | |
62 virtual void OverrideUIString(uint32_t hash, | |
63 const base::string16& string) = 0; | |
64 | |
65 // Called from VariationsService::PerformPreMainMessageLoopStartup(). | 60 // Called from VariationsService::PerformPreMainMessageLoopStartup(). |
66 virtual void OnInitialStartup() {} | 61 virtual void OnInitialStartup() {} |
67 }; | 62 }; |
68 | 63 |
69 } // namespace variations | 64 } // namespace variations |
70 | 65 |
71 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 66 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
OLD | NEW |