OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_BROWSER_PLUGIN_OLD_OLD_BROWSER_PLUGIN_HOST_H__ | 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_OLD_OLD_BROWSER_PLUGIN_HOST_H__ |
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_OLD_OLD_BROWSER_PLUGIN_HOST_H__ | 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_OLD_OLD_BROWSER_PLUGIN_HOST_H__ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
13 #include "content/public/browser/web_contents_delegate.h" | 13 #include "content/public/browser/web_contents_delegate.h" |
14 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
15 #include "ppapi/c/pp_instance.h" | 15 #include "ppapi/c/pp_instance.h" |
16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/size.h" |
17 | 17 |
18 class WebContentsImpl; | |
19 | |
20 namespace IPC { | 18 namespace IPC { |
21 struct ChannelHandle; | 19 struct ChannelHandle; |
22 } | 20 } |
23 | 21 |
24 namespace content { | 22 namespace content { |
25 | 23 |
26 class RenderProcessHost; | 24 class RenderProcessHost; |
| 25 class WebContentsImpl; |
27 | 26 |
28 namespace old { | 27 namespace old { |
29 | 28 |
30 | 29 |
31 // A BrowserPluginHost object is used by both embedders and guests. | 30 // A BrowserPluginHost object is used by both embedders and guests. |
32 // The primary purpose of BrowserPluginHost is to allow an embedder | 31 // The primary purpose of BrowserPluginHost is to allow an embedder |
33 // to manage the lifetime of its guests. It cleans up its guests | 32 // to manage the lifetime of its guests. It cleans up its guests |
34 // on navigation, crashes, and "hides" guests when it hides. | 33 // on navigation, crashes, and "hides" guests when it hides. |
35 // For the guest, BrowserPluginHost keeps track of its embedder, | 34 // For the guest, BrowserPluginHost keeps track of its embedder, |
36 // and its BrowserPlugin instance ID. | 35 // and its BrowserPlugin instance ID. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 GuestMap guests_; | 126 GuestMap guests_; |
128 ContainerInstanceMap guests_by_container_id_; | 127 ContainerInstanceMap guests_by_container_id_; |
129 | 128 |
130 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHost); | 129 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHost); |
131 }; | 130 }; |
132 | 131 |
133 } // namespace old | 132 } // namespace old |
134 } // namespace content | 133 } // namespace content |
135 | 134 |
136 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_OLD_OLD_BROWSER_PLUGIN_HOST_H_ | 135 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_OLD_OLD_BROWSER_PLUGIN_HOST_H_ |
OLD | NEW |