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

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

Issue 7715020: Move P2P code to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.h ('k') | content/renderer/render_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_plugin_delegate_impl.h" 5 #include "content/renderer/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { 1422 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) {
1423 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( 1423 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions(
1424 render_view_->routing_id(), restrictions)); 1424 render_view_->routing_id(), restrictions));
1425 } 1425 }
1426 1426
1427 void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) { 1427 void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) {
1428 render_view_->Send(new ViewHostMsg_SaveURLAs( 1428 render_view_->Send(new ViewHostMsg_SaveURLAs(
1429 render_view_->routing_id(), url)); 1429 render_view_->routing_id(), url));
1430 } 1430 }
1431 1431
1432 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { 1432 content::P2PSocketDispatcher*
1433 PepperPluginDelegateImpl::GetP2PSocketDispatcher() {
1433 return render_view_->p2p_socket_dispatcher(); 1434 return render_view_->p2p_socket_dispatcher();
1434 } 1435 }
1435 1436
1436 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() { 1437 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() {
1437 #if defined(ENABLE_P2P_APIS) 1438 #if defined(ENABLE_P2P_APIS)
1438 return new P2PTransportImpl(render_view_->p2p_socket_dispatcher()); 1439 return new content::P2PTransportImpl(render_view_->p2p_socket_dispatcher());
1439 #else 1440 #else
1440 return NULL; 1441 return NULL;
1441 #endif 1442 #endif
1442 } 1443 }
1443 1444
1444 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) { 1445 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) {
1445 double result = 0.0; 1446 double result = 0.0;
1446 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset( 1447 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset(
1447 t, &result)); 1448 t, &result));
1448 return result; 1449 return result;
(...skipping 27 matching lines...) Expand all
1476 1477
1477 int PepperPluginDelegateImpl::GetRoutingId() const { 1478 int PepperPluginDelegateImpl::GetRoutingId() const {
1478 return render_view_->routing_id(); 1479 return render_view_->routing_id();
1479 } 1480 }
1480 1481
1481 void PepperPluginDelegateImpl::PublishInitialPolicy( 1482 void PepperPluginDelegateImpl::PublishInitialPolicy(
1482 scoped_refptr<webkit::ppapi::PluginInstance> instance, 1483 scoped_refptr<webkit::ppapi::PluginInstance> instance,
1483 const std::string& policy) { 1484 const std::string& policy) {
1484 instance->HandlePolicyUpdate(policy); 1485 instance->HandlePolicyUpdate(policy);
1485 } 1486 }
OLDNEW
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.h ('k') | content/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698