OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // NOT DEAD CODE! | 5 // NOT DEAD CODE! |
6 // This code isn't dead, even if it isn't currently being used. Please refer to: | 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 | 7 // https://www.chromium.org/developers/how-tos/compact-language-detector-cld-dat
a-source-configuration |
8 | 8 |
9 // Multiply-included message file, hence no include guard. | 9 // Multiply-included message file, hence no include guard. |
10 | 10 |
| 11 #include <stdint.h> |
| 12 |
11 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
12 #include "ipc/ipc_message_utils.h" | 14 #include "ipc/ipc_message_utils.h" |
13 #include "ipc/ipc_platform_file.h" | 15 #include "ipc/ipc_platform_file.h" |
14 | 16 |
15 // Note, for clean abstraction there is only one "CldDataProviderMessageStart" | 17 // Note, for clean abstraction there is only one "CldDataProviderMessageStart" |
16 // that is declared in ipc_message_start.h. All implementations share it, | 18 // that is declared in ipc_message_start.h. All implementations share it, |
17 // which avoids the need for each implementation to make its own entry. | 19 // which avoids the need for each implementation to make its own entry. |
18 // This would otherwise be very messy, as there is no mechanism to customize | 20 // This would otherwise be very messy, as there is no mechanism to customize |
19 // or extend the IPCMessageStart enum. | 21 // or extend the IPCMessageStart enum. |
20 #define IPC_MESSAGE_START CldDataProviderMsgStart | 22 #define IPC_MESSAGE_START CldDataProviderMsgStart |
21 | 23 |
22 // Informs the browser process that Compact Language Detector (CLD) data is | 24 // Informs the browser process that Compact Language Detector (CLD) data is |
23 // needed in the form of a data file. | 25 // needed in the form of a data file. |
24 // This message is sent by a DataFileRendererCldDataProvider to a | 26 // This message is sent by a DataFileRendererCldDataProvider to a |
25 // DataFileBrowserCldDataProvider. | 27 // DataFileBrowserCldDataProvider. |
26 IPC_MESSAGE_ROUTED0(ChromeFrameHostMsg_NeedCldDataFile) | 28 IPC_MESSAGE_ROUTED0(ChromeFrameHostMsg_NeedCldDataFile) |
27 | 29 |
28 // Informs the renderer process that Compact Language Detector (CLD) data is | 30 // Informs the renderer process that Compact Language Detector (CLD) data is |
29 // available and provides an IPC::PlatformFileForTransit obtained from | 31 // available and provides an IPC::PlatformFileForTransit obtained from |
30 // IPC::GetFileHandleForProcess(...) | 32 // IPC::GetFileHandleForProcess(...) |
31 // This message is sent by a DataFileBrowserCldDataProvider to a | 33 // This message is sent by a DataFileBrowserCldDataProvider to a |
32 // DataFileRendererCldDataProvider. | 34 // DataFileRendererCldDataProvider. |
33 IPC_MESSAGE_ROUTED3(ChromeFrameMsg_CldDataFileAvailable, | 35 IPC_MESSAGE_ROUTED3(ChromeFrameMsg_CldDataFileAvailable, |
34 IPC::PlatformFileForTransit /* ipc_file_handle */, | 36 IPC::PlatformFileForTransit /* ipc_file_handle */, |
35 uint64 /* data_offset */, | 37 uint64_t /* data_offset */, |
36 uint64 /* data_length */) | 38 uint64_t /* data_length */) |
OLD | NEW |