OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_RENDERER_GUEST_VIEW_CHROME_GUEST_VIEW_CONTAINER_DISPATCHER_H_ |
| 6 #define CHROME_RENDERER_GUEST_VIEW_CHROME_GUEST_VIEW_CONTAINER_DISPATCHER_H_ |
| 7 |
| 8 #include "components/guest_view/renderer/guest_view_container_dispatcher.h" |
| 9 |
| 10 #if defined(ENABLE_EXTENSIONS) |
| 11 #include "extensions/renderer/guest_view/extensions_guest_view_container_dispatc
her.h" |
| 12 #endif |
| 13 |
| 14 namespace chrome { |
| 15 |
| 16 #if defined(ENABLE_EXTENSIONS) |
| 17 using GuestViewContainerDispatcherBase = |
| 18 extensions::ExtensionsGuestViewContainerDispatcher; |
| 19 #else |
| 20 using GuestViewContainerDispatcherBase = |
| 21 guest_view::GuestViewContainerDispatcher; |
| 22 #endif |
| 23 |
| 24 class ChromeGuestViewContainerDispatcher |
| 25 : public GuestViewContainerDispatcherBase { |
| 26 public: |
| 27 ChromeGuestViewContainerDispatcher(); |
| 28 ~ChromeGuestViewContainerDispatcher() override; |
| 29 |
| 30 private: |
| 31 // guest_view::GuestViewContainerDispatcher implementation. |
| 32 bool HandlesMessage(const IPC::Message& message) override; |
| 33 |
| 34 // content::RenderProcessObserver overrides. |
| 35 bool OnControlMessageReceived(const IPC::Message& message) override; |
| 36 |
| 37 // Message Handlers. |
| 38 void OnRequestHeapSize(int routing_id); |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(ChromeGuestViewContainerDispatcher); |
| 41 }; |
| 42 |
| 43 } // namespace chrome |
| 44 |
| 45 #endif // CHROME_RENDERER_GUEST_VIEW_CHROME_GUEST_VIEW_CONTAINER_DISPATCHER_H_ |
OLD | NEW |