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

Unified Diff: extensions/browser/guest_view/guest_view_message_filter.cc

Issue 892923002: Move GuestView IPCs into their own messages file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/guest_view/guest_view_message_filter.cc
diff --git a/extensions/browser/guest_view/guest_view_message_filter.cc b/extensions/browser/guest_view/guest_view_message_filter.cc
index dc6830f1edf3867577cc3e9daec858db5ecd80e3..f1b868e3faa6247bdb031b16f7fbdd6bef0d6f68 100644
--- a/extensions/browser/guest_view/guest_view_message_filter.cc
+++ b/extensions/browser/guest_view/guest_view_message_filter.cc
@@ -11,7 +11,7 @@
#include "extensions/browser/guest_view/guest_view_manager.h"
#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_constants.h"
#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h"
-#include "extensions/common/extension_messages.h"
+#include "extensions/common/guest_view/guest_view_messages.h"
#include "ipc/ipc_message_macros.h"
using content::BrowserContext;
@@ -23,7 +23,7 @@ namespace extensions {
GuestViewMessageFilter::GuestViewMessageFilter(int render_process_id,
BrowserContext* context)
- : BrowserMessageFilter(ExtensionMsgStart),
+ : BrowserMessageFilter(GuestViewMsgStart),
render_process_id_(render_process_id),
browser_context_(context),
weak_ptr_factory_(this) {
@@ -38,8 +38,8 @@ void GuestViewMessageFilter::OverrideThreadForMessage(
const IPC::Message& message,
BrowserThread::ID* thread) {
switch (message.type()) {
- case ExtensionHostMsg_AttachGuest::ID:
- case ExtensionHostMsg_CreateMimeHandlerViewGuest::ID:
+ case GuestViewHostMsg_AttachGuest::ID:
+ case GuestViewHostMsg_CreateMimeHandlerViewGuest::ID:
*thread = BrowserThread::UI;
break;
default:
@@ -56,8 +56,8 @@ void GuestViewMessageFilter::OnDestruct() const {
bool GuestViewMessageFilter::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(GuestViewMessageFilter, message)
- IPC_MESSAGE_HANDLER(ExtensionHostMsg_AttachGuest, OnAttachGuest)
- IPC_MESSAGE_HANDLER(ExtensionHostMsg_CreateMimeHandlerViewGuest,
+ IPC_MESSAGE_HANDLER(GuestViewHostMsg_AttachGuest, OnAttachGuest)
+ IPC_MESSAGE_HANDLER(GuestViewHostMsg_CreateMimeHandlerViewGuest,
OnCreateMimeHandlerViewGuest)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -144,7 +144,7 @@ void GuestViewMessageFilter::MimeHandlerViewGuestCreatedCallback(
attach_params);
rfh->Send(
- new ExtensionMsg_CreateMimeHandlerViewGuestACK(element_instance_id));
+ new GuestViewMsg_CreateMimeHandlerViewGuestACK(element_instance_id));
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698