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/common/cursors/webcursor.h" |
10 #include "content/renderer/browser_plugin/browser_plugin.h" | 10 #include "content/renderer/browser_plugin/browser_plugin.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 DCHECK(success); | 42 DCHECK(success); |
43 BrowserPlugin* plugin = GetBrowserPlugin(guest_instance_id); | 43 BrowserPlugin* plugin = GetBrowserPlugin(guest_instance_id); |
44 if (plugin && plugin->OnMessageReceived(message)) | 44 if (plugin && plugin->OnMessageReceived(message)) |
45 return true; | 45 return true; |
46 } | 46 } |
47 | 47 |
48 return false; | 48 return false; |
49 } | 49 } |
50 | 50 |
51 void BrowserPluginManagerImpl::DidCommitCompositorFrame() { | 51 void BrowserPluginManagerImpl::DidCommitCompositorFrame() { |
52 IDMap<BrowserPlugin>::iterator iter(&instances_); | 52 IDMap<BrowserPlugin>::iterator iter(&instances_by_guest_id_); |
53 while (!iter.IsAtEnd()) { | 53 while (!iter.IsAtEnd()) { |
54 iter.GetCurrentValue()->DidCommitCompositorFrame(); | 54 iter.GetCurrentValue()->DidCommitCompositorFrame(); |
55 iter.Advance(); | 55 iter.Advance(); |
56 } | 56 } |
57 } | 57 } |
58 | 58 |
59 } // namespace content | 59 } // namespace content |
OLD | NEW |