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" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 int GetNextInstanceID(); | 54 int GetNextInstanceID(); |
55 | 55 |
56 void DidCommitCompositorFrame(int render_frame_routing_id); | 56 void DidCommitCompositorFrame(int render_frame_routing_id); |
57 bool Send(IPC::Message* msg); | 57 bool Send(IPC::Message* msg); |
58 | 58 |
59 // RenderThreadObserver override. | 59 // RenderThreadObserver override. |
60 bool OnControlMessageReceived(const IPC::Message& message) override; | 60 bool OnControlMessageReceived(const IPC::Message& message) override; |
61 | 61 |
62 private: | 62 private: |
63 // This map is keyed by guest instance IDs. | 63 // This map is keyed by guest instance IDs. |
64 IDMap<BrowserPlugin> instances_; | 64 IDMap<BrowserPlugin*> instances_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManager); | 66 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManager); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace content | 69 } // namespace content |
70 | 70 |
71 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ | 71 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ |
OLD | NEW |