Don't preload rarely seen large images
[chromium-blink-merge.git] / components / guest_view / common / guest_view_messages.h
blobacec2c620371ecffc9473c0dcd1451cba2266d7e
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 // Tells the embedder that a guest has been attached in --site-per-process mode.
16 IPC_MESSAGE_CONTROL1(GuestViewMsg_AttachToEmbedderFrame_ACK,
17 int /* element_instance_id */)
19 // Once a RenderView proxy has been created for the guest in the embedder render
20 // process, this IPC informs the embedder of the proxy's routing ID.
21 IPC_MESSAGE_CONTROL2(GuestViewMsg_GuestAttached,
22 int /* element_instance_id */,
23 int /* source_routing_id */)
25 // This IPC tells the browser process to detach the provided
26 // |element_instance_id| from a GuestViewBase if it is attached to one.
27 // In other words, routing of input and graphics will no longer flow through
28 // the container associated with the provided ID.
29 IPC_MESSAGE_CONTROL1(GuestViewMsg_GuestDetached,
30 int /* element_instance_id*/)
32 // Messages sent from the renderer to the browser.
34 // Sent by the renderer to set initialization parameters of a Browser Plugin
35 // that is identified by |element_instance_id|.
36 IPC_MESSAGE_CONTROL3(GuestViewHostMsg_AttachGuest,
37 int /* element_instance_id */,
38 int /* guest_instance_id */,
39 base::DictionaryValue /* attach_params */)
41 // We have a RenderFrame with routing id of |embedder_local_frame_routing_id|.
42 // We want this local frame to be replaced with a remote frame that points
43 // to a GuestView. This message will attach the local frame to the guest.
44 // The GuestView is identified by its ID: |guest_instance_id|.
45 IPC_MESSAGE_CONTROL4(GuestViewHostMsg_AttachToEmbedderFrame,
46 int /* embedder_local_frame_routing_id */,
47 int /* element_instance_id */,
48 int /* guest_instance_id */,
49 base::DictionaryValue /* params */)
51 // Sent by the renderer when a GuestView (identified by |view_instance_id|) has
52 // been created in JavaScript.
53 IPC_MESSAGE_CONTROL2(GuestViewHostMsg_ViewCreated,
54 int /* view_instance_id */,
55 std::string /* view_type */)
57 // Sent by the renderer when a GuestView (identified by |view_instance_id|) has
58 // been garbage collected in JavaScript.
59 IPC_MESSAGE_CONTROL1(GuestViewHostMsg_ViewGarbageCollected,
60 int /* view_instance_id */)