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

Side by Side Diff: components/translate/content/renderer/renderer_cld_utils.h

Issue 2034413003: Delete the non-static CLD data source logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to latest master Created 4 years, 6 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
(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_RENDERER_RENDERER_CLD_UTILS_H_
6 #define COMPONENTS_TRANSLATE_CONTENT_RENDERER_RENDERER_CLD_UTILS_H_
7
8 #include "base/macros.h"
9
10 namespace translate {
11
12 // Renderer-side utilities for dealing with CLD data source configuration.
13 class RendererCldUtils {
14 public:
15 // Perform conditional configuration of the CLD data provider.
16 // If no specific RendererCldDataProvider has yet been set, an instance is
17 // created and assigned as appropriate for each platform. If a specific
18 // RendererCldDataProviderFactory *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 RendererCldUtils() {}
33 ~RendererCldUtils() {}
34 DISALLOW_COPY_AND_ASSIGN(RendererCldUtils);
35 };
36
37 } // namespace translate
38
39 #endif // COMPONENTS_TRANSLATE_CONTENT_RENDERER_RENDERER_CLD_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698