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

Unified Diff: chrome/renderer/guest_view/chrome_guest_view_container_dispatcher.h

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 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: 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_
« no previous file with comments | « chrome/renderer/guest_view/DEPS ('k') | chrome/renderer/guest_view/chrome_guest_view_container_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698