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

Side by Side Diff: android_webview/common/aw_message_port_messages.h

Issue 831523004: Enable posting a message from JS to Android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component builds Created 5 years, 11 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 2015 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 file, no traditional include guard.
6 #include <vector>
7
8 #include "base/basictypes.h"
9 #include "ipc/ipc_message_macros.h"
10
11 #define IPC_MESSAGE_START AwMessagePortMsgStart
12
13 //-----------------------------------------------------------------------------
14 // MessagePort messages
15 // These are messages sent from the browser to the renderer process.
16
17 // Tells the renderer to convert the sent message from a WebSerializeScript
18 // format to a base::ListValue. Due to the complexities of renderer/browser
19 // relation, this can only be done in renderer for now.
20 IPC_MESSAGE_ROUTED3(AwMessagePortMsg_Message,
21 int /* recipient message port id */,
22 base::string16 /* message */,
23 std::vector<int> /* sent message port_ids */)
24
25 //-----------------------------------------------------------------------------
26 // These are messages sent from the renderer to the browser process.
27
28 // Response to AwMessagePortMessage_ConvertMessage
29 IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedMessage,
30 int /* recipient message port id */,
31 base::ListValue /* converted message */,
32 std::vector<int> /* sent message port_ids */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698