Index: chrome/renderer/guest_view/chrome_guest_view_container_dispatcher.h |
diff --git a/chrome/renderer/guest_view/chrome_guest_view_container_dispatcher.h b/chrome/renderer/guest_view/chrome_guest_view_container_dispatcher.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c45074a09cbe9a4edfb3fd7ceda78409be54edf8 |
--- /dev/null |
+++ b/chrome/renderer/guest_view/chrome_guest_view_container_dispatcher.h |
@@ -0,0 +1,45 @@ |
+// 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. |
+ |
+#ifndef CHROME_RENDERER_GUEST_VIEW_CHROME_GUEST_VIEW_CONTAINER_DISPATCHER_H_ |
+#define CHROME_RENDERER_GUEST_VIEW_CHROME_GUEST_VIEW_CONTAINER_DISPATCHER_H_ |
+ |
+#include "components/guest_view/renderer/guest_view_container_dispatcher.h" |
+ |
+#if defined(ENABLE_EXTENSIONS) |
+#include "extensions/renderer/guest_view/extensions_guest_view_container_dispatcher.h" |
+#endif |
+ |
+namespace chrome { |
+ |
+#if defined(ENABLE_EXTENSIONS) |
+using GuestViewContainerDispatcherBase = |
+ extensions::ExtensionsGuestViewContainerDispatcher; |
+#else |
+using GuestViewContainerDispatcherBase = |
+ guest_view::GuestViewContainerDispatcher; |
+#endif |
+ |
+class ChromeGuestViewContainerDispatcher |
+ : public GuestViewContainerDispatcherBase { |
+ public: |
+ ChromeGuestViewContainerDispatcher(); |
+ ~ChromeGuestViewContainerDispatcher() override; |
+ |
+ private: |
+ // guest_view::GuestViewContainerDispatcher implementation. |
+ bool HandlesMessage(const IPC::Message& message) override; |
+ |
+ // content::RenderProcessObserver overrides. |
+ bool OnControlMessageReceived(const IPC::Message& message) override; |
+ |
+ // Message Handlers. |
+ void OnRequestHeapSize(int routing_id); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ChromeGuestViewContainerDispatcher); |
+}; |
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_RENDERER_GUEST_VIEW_CHROME_GUEST_VIEW_CONTAINER_DISPATCHER_H_ |