summaryrefslogtreecommitdiffstats
path: root/extensions/renderer
diff options
context:
space:
mode:
authorlazyboy <lazyboy@chromium.org>2015-06-02 10:47:29 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-02 17:48:53 +0000
commit7a4f1ceb18ffe6777d6a8b10b2db06e957187eba (patch)
tree6caf91defebb448420ccfadc547fac1514b02aea /extensions/renderer
parentb0459422d0c363d4c7208916f00eee74d0d503ea (diff)
downloadchromium_src-7a4f1ceb18ffe6777d6a8b10b2db06e957187eba.zip
chromium_src-7a4f1ceb18ffe6777d6a8b10b2db06e957187eba.tar.gz
chromium_src-7a4f1ceb18ffe6777d6a8b10b2db06e957187eba.tar.bz2
Move guest view container message routing out of content/.
GuestViews used to receive messages through BrowserPlugin, this CL makes GuestView message routing possible without BrowserPlugin. This is a prerequisite for making <webview> pluginless. BUG=330264 Test=None, internal change only. Review URL: https://codereview.chromium.org/1161483004 Cr-Commit-Position: refs/heads/master@{#332430}
Diffstat (limited to 'extensions/renderer')
-rw-r--r--extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.cc26
-rw-r--r--extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.h22
2 files changed, 48 insertions, 0 deletions
diff --git a/extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.cc b/extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.cc
new file mode 100644
index 0000000..16f1f47
--- /dev/null
+++ b/extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.cc
@@ -0,0 +1,26 @@
+// 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 "extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.h"
+
+#include "ipc/ipc_message.h"
+#include "ipc/ipc_message_macros.h"
+
+namespace extensions {
+
+ExtensionsGuestViewContainerDispatcher::
+ ExtensionsGuestViewContainerDispatcher() {
+}
+
+ExtensionsGuestViewContainerDispatcher::
+ ~ExtensionsGuestViewContainerDispatcher() {
+}
+
+bool ExtensionsGuestViewContainerDispatcher::HandlesMessage(
+ const IPC::Message& message) {
+ return GuestViewContainerDispatcher::HandlesMessage(message) ||
+ (IPC_MESSAGE_CLASS(message) == ExtensionsGuestViewMsgStart);
+}
+
+} // namespace extensions
diff --git a/extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.h b/extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.h
new file mode 100644
index 0000000..8d1d36a
--- /dev/null
+++ b/extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.h
@@ -0,0 +1,22 @@
+// 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 "components/guest_view/renderer/guest_view_container_dispatcher.h"
+
+namespace extensions {
+
+class ExtensionsGuestViewContainerDispatcher
+ : public guest_view::GuestViewContainerDispatcher {
+ public:
+ ExtensionsGuestViewContainerDispatcher();
+ ~ExtensionsGuestViewContainerDispatcher() override;
+
+ private:
+ // guest_view::GuestViewContainerDispatcher implementation.
+ bool HandlesMessage(const IPC::Message& message) override;
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionsGuestViewContainerDispatcher);
+};
+
+} // namespace extensions