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