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 virtual ~StaticRendererCldDataProvider(); |
| 22 // RendererCldDataProvider implementations: |
| 23 virtual bool OnMessageReceived(const IPC::Message&) OVERRIDE; |
| 24 virtual void SendCldDataRequest() OVERRIDE; |
| 25 virtual void SetCldAvailableCallback(base::Callback<void(void)>) OVERRIDE; |
| 26 virtual 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 |