OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_CONTAINER_H_ | 5 #ifndef COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_CONTAINER_H_ |
6 #define COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_CONTAINER_H_ | 6 #define COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_CONTAINER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "components/guest_view/renderer/guest_view_container.h" | 9 #include "components/guest_view/renderer/guest_view_container.h" |
9 | 10 |
10 namespace guest_view { | 11 namespace guest_view { |
11 | 12 |
12 // A GuestViewContainer whose container element is backed by an out-of-process | 13 // A GuestViewContainer whose container element is backed by an out-of-process |
13 // <iframe>. | 14 // <iframe>. |
14 // This container handles messages related to guest attachment in | 15 // This container handles messages related to guest attachment in |
15 // --site-per-process. | 16 // --site-per-process. |
16 class IframeGuestViewContainer : public GuestViewContainer { | 17 class IframeGuestViewContainer : public GuestViewContainer { |
17 public: | 18 public: |
18 explicit IframeGuestViewContainer(content::RenderFrame* render_frame); | 19 explicit IframeGuestViewContainer(content::RenderFrame* render_frame); |
19 ~IframeGuestViewContainer() override; | 20 ~IframeGuestViewContainer() override; |
20 | 21 |
21 // GuestViewContainer overrides. | 22 // GuestViewContainer overrides. |
22 bool OnMessage(const IPC::Message& message) override; | 23 bool OnMessage(const IPC::Message& message) override; |
23 | 24 |
24 private: | 25 private: |
25 DISALLOW_COPY_AND_ASSIGN(IframeGuestViewContainer); | 26 DISALLOW_COPY_AND_ASSIGN(IframeGuestViewContainer); |
26 }; | 27 }; |
27 | 28 |
28 } // namespace guest_view | 29 } // namespace guest_view |
29 | 30 |
30 #endif // COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_CONTAINER_H_ | 31 #endif // COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_CONTAINER_H_ |
OLD | NEW |