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 EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_ | 5 #ifndef EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_ |
6 #define EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_ | 6 #define EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/public/renderer/browser_plugin_delegate.h" | 9 #include "content/public/renderer/browser_plugin_delegate.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 void RenderFrameDestroyed(); | 22 void RenderFrameDestroyed(); |
23 | 23 |
24 // BrowserPluginDelegate implementation. | 24 // BrowserPluginDelegate implementation. |
25 void SetElementInstanceID(int element_instance_id) override; | 25 void SetElementInstanceID(int element_instance_id) override; |
26 | 26 |
27 int element_instance_id() const { return element_instance_id_; } | 27 int element_instance_id() const { return element_instance_id_; } |
28 int render_view_routing_id() const { return render_view_routing_id_; } | 28 int render_view_routing_id() const { return render_view_routing_id_; } |
29 content::RenderFrame* render_frame() const { return render_frame_; } | 29 content::RenderFrame* render_frame() const { return render_frame_; } |
30 | 30 |
| 31 virtual void OnRenderFrameDestroyed() {} |
| 32 |
31 private: | 33 private: |
32 class RenderFrameLifetimeObserver; | 34 class RenderFrameLifetimeObserver; |
33 | 35 |
34 int element_instance_id_; | 36 int element_instance_id_; |
35 const int render_view_routing_id_; | 37 const int render_view_routing_id_; |
36 content::RenderFrame* render_frame_; | 38 content::RenderFrame* render_frame_; |
37 scoped_ptr<RenderFrameLifetimeObserver> render_frame_lifetime_observer_; | 39 scoped_ptr<RenderFrameLifetimeObserver> render_frame_lifetime_observer_; |
38 | 40 |
39 DISALLOW_COPY_AND_ASSIGN(GuestViewContainer); | 41 DISALLOW_COPY_AND_ASSIGN(GuestViewContainer); |
40 }; | 42 }; |
41 | 43 |
42 } // namespace extensions | 44 } // namespace extensions |
43 | 45 |
44 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_ | 46 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_ |
OLD | NEW |