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

Unified Diff: components/translate/content/renderer/data_file_renderer_cld_data_provider.h

Issue 461633002: Refactor language detection logic to allow non-static CLD data sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make some of the harness factory methods private Created 6 years, 1 month 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/renderer/data_file_renderer_cld_data_provider.h
diff --git a/components/translate/content/renderer/data_file_renderer_cld_data_provider.h b/components/translate/content/renderer/data_file_renderer_cld_data_provider.h
index 87c1551e6a0813f5830d56f5bd282e6a30c6f519..acd62616dfe0f16b4af6d41c6fcec4c99fa39764 100644
--- a/components/translate/content/renderer/data_file_renderer_cld_data_provider.h
+++ b/components/translate/content/renderer/data_file_renderer_cld_data_provider.h
@@ -10,17 +10,22 @@
#include "components/translate/content/renderer/renderer_cld_data_provider.h"
#include "ipc/ipc_platform_file.h"
+namespace content {
+class RenderViewObserver;
+}
+
namespace translate {
class DataFileRendererCldDataProvider : public RendererCldDataProvider {
public:
explicit DataFileRendererCldDataProvider(content::RenderViewObserver*);
- virtual ~DataFileRendererCldDataProvider();
+ ~DataFileRendererCldDataProvider() override;
+
// RendererCldDataProvider implementations:
- virtual bool OnMessageReceived(const IPC::Message&) override;
- virtual void SendCldDataRequest() override;
- virtual void SetCldAvailableCallback(base::Callback<void(void)>) override;
- virtual bool IsCldDataAvailable() override;
+ bool OnMessageReceived(const IPC::Message&) override;
+ void SendCldDataRequest() override;
+ void SetCldAvailableCallback(base::Callback<void(void)>) override;
+ bool IsCldDataAvailable() override;
private:
void OnCldDataAvailable(const IPC::PlatformFileForTransit ipc_file_handle,

Powered by Google App Engine
This is Rietveld 408576698