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

Unified Diff: extensions/common/guest_view/extensions_guest_view_messages.h

Issue 1092853002: GuestView: Decouple extension IPCs from soon-to-be component IPCs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_guest_view_registry_to_guest_view_manager
Patch Set: Updated Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/extension_message_generator.h ('k') | extensions/common/guest_view/guest_view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/guest_view/extensions_guest_view_messages.h
diff --git a/extensions/common/guest_view/extensions_guest_view_messages.h b/extensions/common/guest_view/extensions_guest_view_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..61da7fcec0a364082c954e0ef21e607d6a9afe70
--- /dev/null
+++ b/extensions/common/guest_view/extensions_guest_view_messages.h
@@ -0,0 +1,47 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for extensions GuestViews.
+// Multiply-included message file, hence no include guard.
+
+#include <string>
+
+#include "ipc/ipc_message_macros.h"
+#include "ui/gfx/geometry/size.h"
+#include "ui/gfx/ipc/gfx_param_traits.h"
+
+#define IPC_MESSAGE_START ExtensionsGuestViewMsgStart
+// Messages sent from the browser to the renderer.
+
+// The ACK for GuestViewHostMsg_CreateMimeHandlerViewGuest.
+IPC_MESSAGE_CONTROL1(ExtensionsGuestViewMsg_CreateMimeHandlerViewGuestACK,
+ int /* element_instance_id */)
+
+// Once a MimeHandlerView guest's JavaScript onload function has been called,
+// this IPC is sent to the container to notify it.
+IPC_MESSAGE_CONTROL1(ExtensionsGuestViewMsg_MimeHandlerViewGuestOnLoadCompleted,
+ int /* element_instance_id */)
+
+// Messages sent from the renderer to the browser.
+
+// Queries whether the RenderView of the provided |routing_id| is allowed to
lazyboy 2015/04/21 17:32:58 Thanks for adding the description.
+// inject the script with the provided |script_id|.
+IPC_SYNC_MESSAGE_CONTROL2_1(
+ ExtensionsGuestViewHostMsg_CanExecuteContentScriptSync,
+ int /* routing_id */,
+ int /* script_id */,
+ bool /* allowed */)
+
+// Tells the browser to create a mime handler guest view for a plugin.
+IPC_MESSAGE_CONTROL4(ExtensionsGuestViewHostMsg_CreateMimeHandlerViewGuest,
+ int /* render_frame_id */,
+ std::string /* view_id */,
+ int /* element_instance_id */,
+ gfx::Size /* element_size */)
+
+// A renderer sends this message when it wants to resize a guest.
+IPC_MESSAGE_CONTROL3(ExtensionsGuestViewHostMsg_ResizeGuest,
+ int /* routing_id */,
+ int /* element_instance_id*/,
+ gfx::Size /* new_size */)
« no previous file with comments | « extensions/common/extension_message_generator.h ('k') | extensions/common/guest_view/guest_view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698