Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / extensions / common / guest_view / guest_view_messages.h
blob9772b6fd18dc323c7c4ff179eefbed484c22c10e
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.
5 // IPC messages for GuestViews.
6 // Multiply-included message file, hence no include guard.
8 #include "base/values.h"
9 #include "ipc/ipc_message_macros.h"
11 #define IPC_MESSAGE_START GuestViewMsgStart
13 // Messages sent from the browser to the renderer.
15 // Once a RenderView proxy has been created for the guest in the embedder render
16 // process, this IPC informs the embedder of the proxy's routing ID.
17 IPC_MESSAGE_CONTROL2(GuestViewMsg_GuestAttached,
18 int /* element_instance_id */,
19 int /* source_routing_id */)
21 // This IPC tells the browser process to detach the provided
22 // |element_instance_id| from a GuestViewBase if it is attached to one.
23 // In other words, routing of input and graphics will no longer flow through
24 // the container associated with the provided ID.
25 IPC_MESSAGE_CONTROL1(GuestViewMsg_GuestDetached,
26 int /* element_instance_id*/)
28 // Messages sent from the renderer to the browser.
30 // Sent by the renderer to set initialization parameters of a Browser Plugin
31 // that is identified by |element_instance_id|.
32 IPC_MESSAGE_CONTROL3(GuestViewHostMsg_AttachGuest,
33 int /* element_instance_id */,
34 int /* guest_instance_id */,
35 base::DictionaryValue /* attach_params */)