Add a new CldDataSource class that can be queried at runtime.
commit412210cd7f36100764c53325ccedd187d6e57bdc
authorandrewhayden@chromium.org <andrewhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 29 Jul 2014 12:16:28 +0000 (29 12:16 +0000)
committerandrewhayden@chromium.org <andrewhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 29 Jul 2014 12:16:28 +0000 (29 12:16 +0000)
treea7b291a2a67734e91e76d590da595c5b546f0a92
parent8e04fe4bf4b0525d9397ae91918b6916878f6d96
Add a new CldDataSource class that can be queried at runtime.

This will allow several "#if defined" statements to be replaced with runtime
checks, simplifying the build process and eliminating the need to generate
multiple libraries for several targets when building Android's chrome_shell
in the presence of non-static CLD data sources.

BUG=367239
TBR=toyoshim

Review URL: https://codereview.chromium.org/422843009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286177 0039d316-1c4b-4281-b951-d872f2087c98
components/translate.gypi
components/translate/content/common/BUILD.gn
components/translate/content/common/cld_data_source.h [new file with mode: 0644]
components/translate/content/common/component_cld_data_source.cc [new file with mode: 0644]
components/translate/content/common/standalone_cld_data_source.cc [new file with mode: 0644]
components/translate/content/common/static_cld_data_source.cc [new file with mode: 0644]