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

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

Issue 333603002: Modularize Compact Language Detector 2 (CLD2) data sources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge https://codereview.chromium.org/326383005 Created 6 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 | Annotate | Revision Log
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 // Multiply-included message file, hence no include guard.
6
7 #include "ipc/ipc_message_macros.h"
8 #include "ipc/ipc_message_utils.h"
9 #include "ipc/ipc_platform_file.h"
10
11 // Note, for clean abstraction there is only one "CldDataProviderMessageStart"
12 // that is declared in ipc_message_start.h. All implementations share it,
13 // which avoids the need for each implementation to make its own entry.
14 // This would otherwise be very messy, as there is no mechanism to customize
15 // or extend the IPCMessageStart enum.
16 #define IPC_MESSAGE_START CldDataProviderMsgStart
17
18 // Informs the browser process that Compact Language Detector (CLD) data is
19 // needed in the form of a data file.
20 // This message is sent by a DataFileRendererCldDataProvider to a
21 // DataFileBrowserCldDataProvider.
22 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_NeedCldDataFile)
23
24 // Informs the renderer process that Compact Language Detector (CLD) data is
25 // available and provides an IPC::PlatformFileForTransit obtained from
26 // IPC::GetFileHandleForProcess(...)
27 // This message is sent by a DataFileBrowserCldDataProvider to a
28 // DataFileRendererCldDataProvider.
29 IPC_MESSAGE_ROUTED3(ChromeViewMsg_CldDataFileAvailable,
30 IPC::PlatformFileForTransit /* ipc_file_handle */,
31 uint64 /* data_offset */,
32 uint64 /* data_length */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698