OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_UTILS_H_ | |
6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_UTILS_H_ | |
7 | |
8 namespace translate { | |
9 | |
10 // Browser-side utilities for dealing with CLD data source configuration. | |
11 // This class exists primarily to avoid duplicating code in high-level targets | |
12 // such as the Chrome browser, Chrome shell, and so on. | |
13 class BrowserCldUtils { | |
14 public: | |
15 // Perform conditional configuration of the CLD data provider. | |
16 // If no specific BrowserCldDataProviderFactory has yet been set, an instance | |
17 // is created and assigned as appropriate for each platform. If a specific | |
18 // BrowserCldDataProviderFactory *has* been set, this method does nothing | |
19 // (as a side effect of setting the default factory, subsequent invocations | |
20 // do nothing - making this method reentrant). | |
21 // | |
22 // This method will not overwrite a data provider configured by an embedder, | |
23 // | |
24 // Maintainers: This is the default data source. It is appropriate to | |
25 // ifdef this code and customize the default per-platform. This method must | |
26 // be invoked prior to registering components with the component updater if | |
27 // the component updater implementation is to be used; it is best to ensure | |
28 // that this method is called as early as possible. | |
29 static void ConfigureDefaultDataProvider(); | |
30 | |
31 private: | |
32 BrowserCldUtils() {}; | |
33 ~BrowserCldUtils() {}; | |
jochen (gone - plz use gerrit)
2014/10/23 13:57:39
use a namespace instead of a class (and if it's a
Andrew Hayden (chromium.org)
2014/10/30 16:56:32
I'm fine with changing this to a namespace and a s
| |
34 }; | |
35 | |
36 } // namespace translate | |
37 | |
38 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_UTILS_H_ | |
OLD | NEW |