Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_manager_impl.cc

Issue 444813002: Remove BrowserPlugin's -internal-attach method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698