OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GUEST_VIEW_CONTAINER_H_ | 5 #ifndef COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_ |
6 #define COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_ | 6 #define COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "content/public/renderer/browser_plugin_delegate.h" | 11 #include "content/public/renderer/browser_plugin_delegate.h" |
12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
13 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
14 | 14 |
| 15 namespace content { |
| 16 class RenderFrame; |
| 17 } |
| 18 |
15 namespace guest_view { | 19 namespace guest_view { |
16 | 20 |
17 class GuestViewRequest; | 21 class GuestViewRequest; |
18 | 22 |
19 class GuestViewContainer : public content::BrowserPluginDelegate { | 23 class GuestViewContainer : public content::BrowserPluginDelegate { |
20 public: | 24 public: |
21 explicit GuestViewContainer(content::RenderFrame* render_frame); | 25 explicit GuestViewContainer(content::RenderFrame* render_frame); |
22 | 26 |
23 static GuestViewContainer* FromID(int element_instance_id); | 27 static GuestViewContainer* FromID(int element_instance_id); |
24 | 28 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 v8::Isolate* element_resize_isolate_; | 107 v8::Isolate* element_resize_isolate_; |
104 | 108 |
105 base::WeakPtrFactory<GuestViewContainer> weak_ptr_factory_; | 109 base::WeakPtrFactory<GuestViewContainer> weak_ptr_factory_; |
106 | 110 |
107 DISALLOW_COPY_AND_ASSIGN(GuestViewContainer); | 111 DISALLOW_COPY_AND_ASSIGN(GuestViewContainer); |
108 }; | 112 }; |
109 | 113 |
110 } // namespace guest_view | 114 } // namespace guest_view |
111 | 115 |
112 #endif // COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_ | 116 #endif // COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_ |
OLD | NEW |