Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: components/variations/service/variations_service_client.h

Issue 1363243004: Allow embedders to share code to override UI strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment to test and class and fix typo Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/variations/service/variations_service.cc ('k') | components/variations/service/variations_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698