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

Unified Diff: chrome/renderer/chrome_guest_view_container_observer.cc

Issue 1161483004: Move guest view container message routing out of content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newwindow Created 5 years, 7 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: chrome/renderer/chrome_guest_view_container_observer.cc
diff --git a/chrome/renderer/chrome_guest_view_container_observer.cc b/chrome/renderer/chrome_guest_view_container_observer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c70ad6b3ab3ddf828848d4a9bb7efa557906f747
--- /dev/null
+++ b/chrome/renderer/chrome_guest_view_container_observer.cc
@@ -0,0 +1,25 @@
+// 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.
+
+#include "chrome/renderer/chrome_guest_view_container_observer.h"
Fady Samuel 2015/06/01 11:32:25 Why do we need this class at all? ExtensiosnGuestV
lazyboy 2015/06/01 16:00:07 See comment in other file.
+
+#include "ipc/ipc_message.h"
+#include "ipc/ipc_message_macros.h"
+
+ChromeGuestViewContainerObserver::ChromeGuestViewContainerObserver() {
Fady Samuel 2015/06/01 11:32:25 This is more of a GuestViewContaineDispatcher.
lazyboy 2015/06/01 16:00:07 Done.
+}
+
+ChromeGuestViewContainerObserver::~ChromeGuestViewContainerObserver() {
+}
+
+bool ChromeGuestViewContainerObserver::HandlesMessage(
+ const IPC::Message& message) {
+ if (IPC_MESSAGE_CLASS(message) == GuestViewMsgStart)
+ return true;
+#if defined(ENABLE_EXTENSIONS)
+ return IPC_MESSAGE_CLASS(message) == ExtensionsGuestViewMsgStart;
+#else
+ return false;
+#endif
+}

Powered by Google App Engine
This is Rietveld 408576698