Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: components/translate/content/common/data_file_cld_data_provider_messages.h

Issue 2034413003: Delete the non-static CLD data source logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to latest master Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698