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 // NOT DEAD CODE! | |
6 // This code isn't dead, even if it isn't currently being used. Please refer to: | |
7 // https://www.chromium.org/developers/how-tos/compact-language-detector-cld-dat
a-source-configuration | |
8 | |
9 #include "components/translate/content/renderer/renderer_cld_data_provider.h" | |
10 | |
11 namespace translate { | |
12 | |
13 RendererCldDataProvider::RendererCldDataProvider() { | |
14 // Nothing | |
15 } | |
16 | |
17 bool RendererCldDataProvider::IsCldDataAvailable() { | |
18 return true; | |
19 } | |
20 | |
21 bool RendererCldDataProvider::OnMessageReceived(const IPC::Message& message) { | |
22 return false; // Message not handled | |
23 } | |
24 | |
25 void RendererCldDataProvider::SetCldAvailableCallback | |
26 (base::Callback<void(void)> callback) { | |
27 callback.Run(); | |
28 } | |
29 | |
30 } // namespace translate | |
OLD | NEW |