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 // Multiply-included message file, hence no include guard. | |
10 | |
11 #include <stdint.h> | |
12 | |
13 #include "ipc/ipc_message_macros.h" | |
14 #include "ipc/ipc_message_utils.h" | |
15 #include "ipc/ipc_platform_file.h" | |
16 | |
17 // Note, for clean abstraction there is only one "CldDataProviderMessageStart" | |
18 // that is declared in ipc_message_start.h. All implementations share it, | |
19 // which avoids the need for each implementation to make its own entry. | |
20 // This would otherwise be very messy, as there is no mechanism to customize | |
21 // or extend the IPCMessageStart enum. | |
22 #define IPC_MESSAGE_START CldDataProviderMsgStart | |
23 | |
24 // Informs the browser process that Compact Language Detector (CLD) data is | |
25 // needed in the form of a data file. | |
26 // This message is sent by a DataFileRendererCldDataProvider to a | |
27 // DataFileBrowserCldDataProvider. | |
28 IPC_MESSAGE_ROUTED0(ChromeFrameHostMsg_NeedCldDataFile) | |
29 | |
30 // Informs the renderer process that Compact Language Detector (CLD) data is | |
31 // available and provides an IPC::PlatformFileForTransit obtained from | |
32 // IPC::GetPlatformFileForTransit(...) | |
33 // This message is sent by a DataFileBrowserCldDataProvider to a | |
34 // DataFileRendererCldDataProvider. | |
35 IPC_MESSAGE_ROUTED3(ChromeFrameMsg_CldDataFileAvailable, | |
36 IPC::PlatformFileForTransit /* ipc_file_handle */, | |
37 uint64_t /* data_offset */, | |
38 uint64_t /* data_length */) | |
OLD | NEW |