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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 9 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 | 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/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 <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 tcp_server_sockets_.Lookup(real_server_socket_id); 1705 tcp_server_sockets_.Lookup(real_server_socket_id);
1706 if (socket) { 1706 if (socket) {
1707 bool succeeded = accepted_socket_id != 0; 1707 bool succeeded = accepted_socket_id != 0;
1708 socket->OnAcceptCompleted(succeeded, 1708 socket->OnAcceptCompleted(succeeded,
1709 accepted_socket_id, 1709 accepted_socket_id,
1710 local_addr, 1710 local_addr,
1711 remote_addr); 1711 remote_addr);
1712 } 1712 }
1713 } 1713 }
1714 1714
1715 int PepperPluginDelegateImpl::GetRoutingId() const { 1715 int PepperPluginDelegateImpl::GetRoutingID() const {
1716 return render_view_->routing_id(); 1716 return render_view_->routing_id();
1717 } 1717 }
1718 1718
1719 int PepperPluginDelegateImpl::OpenDevice(PP_DeviceType_Dev type, 1719 int PepperPluginDelegateImpl::OpenDevice(PP_DeviceType_Dev type,
1720 const std::string& device_id, 1720 const std::string& device_id,
1721 const OpenDeviceCallback& callback) { 1721 const OpenDeviceCallback& callback) {
1722 int request_id = 1722 int request_id =
1723 device_enumeration_event_handler_->RegisterOpenDeviceCallback(callback); 1723 device_enumeration_event_handler_->RegisterOpenDeviceCallback(callback);
1724 1724
1725 #if defined(ENABLE_WEBRTC) 1725 #if defined(ENABLE_WEBRTC)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1796 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); 1796 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target);
1797 delete target; 1797 delete target;
1798 mouse_lock_instances_.erase(it); 1798 mouse_lock_instances_.erase(it);
1799 } 1799 }
1800 } 1800 }
1801 1801
1802 webkit_glue::ClipboardClient* 1802 webkit_glue::ClipboardClient*
1803 PepperPluginDelegateImpl::CreateClipboardClient() const { 1803 PepperPluginDelegateImpl::CreateClipboardClient() const {
1804 return new RendererClipboardClient; 1804 return new RendererClipboardClient;
1805 } 1805 }
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698