| OLD | NEW |
| (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_STATIC_RENDERER_CLD_DATA_PROVIDER_
H_ | |
| 6 #define COMPONENTS_TRANSLATE_CONTENT_RENDERER_STATIC_RENDERER_CLD_DATA_PROVIDER_
H_ | |
| 7 | |
| 8 #include "base/files/file.h" | |
| 9 #include "base/files/memory_mapped_file.h" | |
| 10 #include "base/lazy_instance.h" | |
| 11 #include "base/macros.h" | |
| 12 #include "base/memory/weak_ptr.h" | |
| 13 #include "components/translate/content/renderer/renderer_cld_data_provider.h" | |
| 14 #include "ipc/ipc_platform_file.h" | |
| 15 | |
| 16 namespace translate { | |
| 17 | |
| 18 class StaticRendererCldDataProvider : public RendererCldDataProvider { | |
| 19 public: | |
| 20 explicit StaticRendererCldDataProvider(); | |
| 21 ~StaticRendererCldDataProvider() override; | |
| 22 // RendererCldDataProvider implementations: | |
| 23 bool OnMessageReceived(const IPC::Message&) override; | |
| 24 void SendCldDataRequest() override; | |
| 25 void SetCldAvailableCallback(base::Callback<void(void)>) override; | |
| 26 bool IsCldDataAvailable() override; | |
| 27 | |
| 28 private: | |
| 29 DISALLOW_COPY_AND_ASSIGN(StaticRendererCldDataProvider); | |
| 30 }; | |
| 31 | |
| 32 } // namespace translate | |
| 33 | |
| 34 #endif // COMPONENTS_TRANSLATE_CONTENT_RENDERER_STATIC_RENDERER_CLD_DATA_PROVID
ER_H_ | |
| OLD | NEW |