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/pepper/pepper_plugin_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 hung_filter.get())) | 355 hung_filter.get())) |
356 return scoped_refptr<webkit::ppapi::PluginModule>(); | 356 return scoped_refptr<webkit::ppapi::PluginModule>(); |
357 module->InitAsProxied(dispatcher.release()); | 357 module->InitAsProxied(dispatcher.release()); |
358 return module; | 358 return module; |
359 } | 359 } |
360 | 360 |
361 scoped_refptr<webkit::ppapi::PluginModule> | 361 scoped_refptr<webkit::ppapi::PluginModule> |
362 PepperPluginDelegateImpl::CreateBrowserPluginModule( | 362 PepperPluginDelegateImpl::CreateBrowserPluginModule( |
363 const IPC::ChannelHandle& channel_handle, | 363 const IPC::ChannelHandle& channel_handle, |
364 int guest_process_id) { | 364 int guest_process_id) { |
365 BrowserPluginRegistry* registry = | 365 content::old::BrowserPluginRegistry* registry = |
366 RenderThreadImpl::current()->browser_plugin_registry(); | 366 RenderThreadImpl::current()->browser_plugin_registry(); |
367 scoped_refptr<webkit::ppapi::PluginModule> module = | 367 scoped_refptr<webkit::ppapi::PluginModule> module = |
368 registry->GetModule(guest_process_id); | 368 registry->GetModule(guest_process_id); |
369 if (module) | 369 if (module) |
370 return module; | 370 return module; |
371 | 371 |
372 ppapi::PpapiPermissions permissions; | 372 ppapi::PpapiPermissions permissions; |
373 | 373 |
374 FilePath path(kBrowserPluginPath); | 374 FilePath path(kBrowserPluginPath); |
375 scoped_refptr<PepperHungPluginFilter> hung_filter( | 375 scoped_refptr<PepperHungPluginFilter> hung_filter( |
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 else | 1764 else |
1765 return render_view_->mouse_lock_dispatcher(); | 1765 return render_view_->mouse_lock_dispatcher(); |
1766 } | 1766 } |
1767 | 1767 |
1768 webkit_glue::ClipboardClient* | 1768 webkit_glue::ClipboardClient* |
1769 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1769 PepperPluginDelegateImpl::CreateClipboardClient() const { |
1770 return new RendererClipboardClient; | 1770 return new RendererClipboardClient; |
1771 } | 1771 } |
1772 | 1772 |
1773 } // namespace content | 1773 } // namespace content |
OLD | NEW |