| 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_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/id_map.h" | 8 #include "base/id_map.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "content/public/renderer/render_thread_observer.h" | 11 #include "content/public/renderer/render_thread_observer.h" |
| 12 #include "ipc/ipc_sender.h" | 12 #include "ipc/ipc_sender.h" |
| 13 | 13 |
| 14 namespace blink { | |
| 15 class WebFrame; | |
| 16 } | |
| 17 | |
| 18 namespace content { | 14 namespace content { |
| 19 | 15 |
| 20 class BrowserPlugin; | 16 class BrowserPlugin; |
| 21 class BrowserPluginDelegate; | 17 class BrowserPluginDelegate; |
| 22 class RenderFrame; | 18 class RenderFrame; |
| 23 | 19 |
| 24 // BrowserPluginManager manages the routing of messages to the appropriate | 20 // BrowserPluginManager manages the routing of messages to the appropriate |
| 25 // BrowserPlugin object based on its instance ID. There is one BrowserPlugin | 21 // BrowserPlugin object based on its instance ID. There is one BrowserPlugin |
| 26 // for the RenderThread. | 22 // for the RenderThread. |
| 27 class CONTENT_EXPORT BrowserPluginManager : public RenderThreadObserver { | 23 class CONTENT_EXPORT BrowserPluginManager : public RenderThreadObserver { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 private: | 62 private: |
| 67 // This map is keyed by guest instance IDs. | 63 // This map is keyed by guest instance IDs. |
| 68 IDMap<BrowserPlugin> instances_; | 64 IDMap<BrowserPlugin> instances_; |
| 69 | 65 |
| 70 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManager); | 66 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManager); |
| 71 }; | 67 }; |
| 72 | 68 |
| 73 } // namespace content | 69 } // namespace content |
| 74 | 70 |
| 75 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ | 71 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ |
| OLD | NEW |