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

Unified Diff: components/translate/content/common/cld_data_source.h

Issue 422843009: Add a new CldDataSource class that can be queried at runtime. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add BUILD.gn Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/translate/content/common/cld_data_source.h
diff --git a/components/translate/content/common/cld_data_source.h b/components/translate/content/common/cld_data_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ba6511561dfb276a3fca210a083a5c3cfec6414
--- /dev/null
+++ b/components/translate/content/common/cld_data_source.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_TRANSLATE_CONTENT_COMMON_CLD_DATA_SOURCE_H_
+#define COMPONENTS_TRANSLATE_CONTENT_COMMON_CLD_DATA_SOURCE_H_
+
+#include <string>
+
+namespace translate {
+
+// Provides high-level functionality related to a CLD Data Source.
+class CldDataSource {
+
+ public:
+
+ // Returns the symbolic name of the data source. In the Chromium
+ // open-source tree, the following data sources exist:
+ // static uses the static_[browser|renderer]_cld_data_provider
+ // implementations.
+ // standalone uses the data_file_[browser|renderer]_cld_data_provider
+ // implementations.
+ // component also uses the data_file_[browser|renderer]_cld_data_provider
+ // implementations.
+ //
+ // Other implementations based upon Chromium may provide CLD differently and
+ // may have other names.
+ static std::string GetName();
+
+};
+
+} // namespace translate
+#endif // COMPONENTS_TRANSLATE_CONTENT_COMMON_CLD_DATA_SOURCE_H_
« no previous file with comments | « components/translate/content/common/BUILD.gn ('k') | components/translate/content/common/component_cld_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698