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

Unified Diff: extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc

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
Index: extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc
diff --git a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc b/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc
index 7688771ae22aec374505e66e173c2c974fa7950b..8394c35847f348c958a5f58ff83b658179ca75e3 100644
--- a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc
+++ b/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc
@@ -12,6 +12,7 @@
#include "content/public/renderer/render_view.h"
#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_constants.h"
#include "extensions/common/extension_messages.h"
+#include "extensions/common/guest_view/extensions_guest_view_messages.h"
#include "extensions/common/guest_view/guest_view_constants.h"
#include "extensions/common/guest_view/guest_view_messages.h"
#include "gin/arguments.h"
@@ -164,11 +165,12 @@ void MimeHandlerViewContainer::DidReceiveData(const char* data,
bool MimeHandlerViewContainer::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(MimeHandlerViewContainer, message)
- IPC_MESSAGE_HANDLER(GuestViewMsg_CreateMimeHandlerViewGuestACK,
+ IPC_MESSAGE_HANDLER(ExtensionsGuestViewMsg_CreateMimeHandlerViewGuestACK,
OnCreateMimeHandlerViewGuestACK)
+ IPC_MESSAGE_HANDLER(
+ ExtensionsGuestViewMsg_MimeHandlerViewGuestOnLoadCompleted,
+ OnMimeHandlerViewGuestOnLoadCompleted)
IPC_MESSAGE_HANDLER(GuestViewMsg_GuestAttached, OnGuestAttached)
- IPC_MESSAGE_HANDLER(GuestViewMsg_MimeHandlerViewGuestOnLoadCompleted,
- OnMimeHandlerViewGuestOnLoadCompleted)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -177,7 +179,7 @@ bool MimeHandlerViewContainer::OnMessageReceived(const IPC::Message& message) {
void MimeHandlerViewContainer::DidResizeElement(const gfx::Size& old_size,
const gfx::Size& new_size) {
element_size_ = new_size;
- render_frame()->Send(new GuestViewHostMsg_ResizeGuest(
+ render_frame()->Send(new ExtensionsGuestViewHostMsg_ResizeGuest(
render_frame()->GetRoutingID(), element_instance_id(), new_size));
}
@@ -315,9 +317,10 @@ void MimeHandlerViewContainer::CreateMimeHandlerViewGuest() {
if (!render_frame())
return;
- render_frame()->Send(new GuestViewHostMsg_CreateMimeHandlerViewGuest(
- render_frame()->GetRoutingID(), view_id_, element_instance_id(),
- element_size_));
+ render_frame()->Send(
+ new ExtensionsGuestViewHostMsg_CreateMimeHandlerViewGuest(
+ render_frame()->GetRoutingID(), view_id_, element_instance_id(),
+ element_size_));
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698