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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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/renderer/browser_plugin/browser_plugin.h" 9 #include "content/renderer/browser_plugin/browser_plugin.h"
10 #include "content/renderer/render_thread_impl.h" 10 #include "content/renderer/render_thread_impl.h"
11 #include "ui/gfx/point.h" 11 #include "ui/gfx/point.h"
12 #include "webkit/common/cursors/webcursor.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() {
23 } 23 }
24 24
25 BrowserPlugin* BrowserPluginManagerImpl::CreateBrowserPlugin( 25 BrowserPlugin* BrowserPluginManagerImpl::CreateBrowserPlugin(
26 RenderViewImpl* render_view, 26 RenderViewImpl* render_view,
27 WebKit::WebFrame* frame, 27 blink::WebFrame* frame,
28 const WebKit::WebPluginParams& params) { 28 const blink::WebPluginParams& params) {
29 return new BrowserPlugin(render_view, frame, params); 29 return new BrowserPlugin(render_view, frame, params);
30 } 30 }
31 31
32 void BrowserPluginManagerImpl::AllocateInstanceID( 32 void BrowserPluginManagerImpl::AllocateInstanceID(
33 const base::WeakPtr<BrowserPlugin>& browser_plugin) { 33 const base::WeakPtr<BrowserPlugin>& browser_plugin) {
34 int request_id = ++request_id_counter_; 34 int request_id = ++request_id_counter_;
35 pending_allocate_guest_instance_id_requests_.insert( 35 pending_allocate_guest_instance_id_requests_.insert(
36 std::make_pair(request_id, browser_plugin)); 36 std::make_pair(request_id, browser_plugin));
37 Send(new BrowserPluginHostMsg_AllocateInstanceID( 37 Send(new BrowserPluginHostMsg_AllocateInstanceID(
38 browser_plugin->render_view_routing_id(), request_id)); 38 browser_plugin->render_view_routing_id(), request_id));
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 break; 106 break;
107 } 107 }
108 it.Advance(); 108 it.Advance();
109 } 109 }
110 110
111 Send(new BrowserPluginHostMsg_PluginAtPositionResponse( 111 Send(new BrowserPluginHostMsg_PluginAtPositionResponse(
112 message.routing_id(), guest_instance_id, request_id, local_position)); 112 message.routing_id(), guest_instance_id, request_id, local_position));
113 } 113 }
114 114
115 } // namespace content 115 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_manager_impl.h ('k') | content/renderer/browser_plugin/mock_browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698