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 #include "content/renderer/browser_plugin/browser_plugin_manager_impl.h" | 5 #include "content/renderer/browser_plugin/browser_plugin_manager_impl.h" |
6 | 6 |
7 #include "content/common/browser_plugin/browser_plugin_constants.h" | 7 #include "content/common/browser_plugin/browser_plugin_constants.h" |
8 #include "content/common/browser_plugin/browser_plugin_messages.h" | 8 #include "content/common/browser_plugin/browser_plugin_messages.h" |
| 9 #include "content/common/cursors/webcursor.h" |
9 #include "content/renderer/browser_plugin/browser_plugin.h" | 10 #include "content/renderer/browser_plugin/browser_plugin.h" |
10 #include "content/renderer/render_thread_impl.h" | 11 #include "content/renderer/render_thread_impl.h" |
11 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
12 #include "webkit/common/cursors/webcursor.h" | |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 BrowserPluginManagerImpl::BrowserPluginManagerImpl( | 16 BrowserPluginManagerImpl::BrowserPluginManagerImpl( |
17 RenderViewImpl* render_view) | 17 RenderViewImpl* render_view) |
18 : BrowserPluginManager(render_view), | 18 : BrowserPluginManager(render_view), |
19 request_id_counter_(0) { | 19 request_id_counter_(0) { |
20 } | 20 } |
21 | 21 |
22 BrowserPluginManagerImpl::~BrowserPluginManagerImpl() { | 22 BrowserPluginManagerImpl::~BrowserPluginManagerImpl() { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 return; | 82 return; |
83 | 83 |
84 const base::WeakPtr<BrowserPlugin> plugin(it->second); | 84 const base::WeakPtr<BrowserPlugin> plugin(it->second); |
85 if (!plugin) | 85 if (!plugin) |
86 return; | 86 return; |
87 pending_allocate_guest_instance_id_requests_.erase(request_id); | 87 pending_allocate_guest_instance_id_requests_.erase(request_id); |
88 plugin->OnInstanceIDAllocated(guest_instance_id); | 88 plugin->OnInstanceIDAllocated(guest_instance_id); |
89 } | 89 } |
90 | 90 |
91 } // namespace content | 91 } // namespace content |
OLD | NEW |