Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / components / translate / content / browser / browser_cld_utils.h
blobc8c5af1c80ad791e36f3c5faff2a2f97d6a08160
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.
5 #ifndef COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_UTILS_H_
6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_UTILS_H_
8 #include "base/macros.h"
10 namespace translate {
12 // Browser-side utilities for dealing with CLD data source configuration.
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).
22 // This method will not overwrite a data provider configured by an embedder.
23 // This method must be invoked prior to registering components with the
24 // component updater if the component updater implementation is to be used;
25 // it is best to ensure that this method is called as early as possible.
26 static void ConfigureDefaultDataProvider();
28 private:
29 BrowserCldUtils() {}
30 ~BrowserCldUtils() {}
31 DISALLOW_COPY_AND_ASSIGN(BrowserCldUtils);
34 } // namespace translate
36 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_BROWSER_CLD_UTILS_H_