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

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, 3 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) 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 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 void PepperPluginDelegateImpl::HasUnsupportedFeature() { 1425 void PepperPluginDelegateImpl::HasUnsupportedFeature() {
1426 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( 1426 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature(
1427 render_view_->routing_id())); 1427 render_view_->routing_id()));
1428 } 1428 }
1429 1429
1430 void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) { 1430 void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) {
1431 render_view_->Send(new ViewHostMsg_SaveURLAs( 1431 render_view_->Send(new ViewHostMsg_SaveURLAs(
1432 render_view_->routing_id(), url)); 1432 render_view_->routing_id(), url));
1433 } 1433 }
1434 1434
1435 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { 1435 content::P2PSocketDispatcher*
1436 PepperPluginDelegateImpl::GetP2PSocketDispatcher() {
1436 return render_view_->p2p_socket_dispatcher(); 1437 return render_view_->p2p_socket_dispatcher();
1437 } 1438 }
1438 1439
1439 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() { 1440 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() {
1440 #if defined(ENABLE_P2P_APIS) 1441 #if defined(ENABLE_P2P_APIS)
1441 return new P2PTransportImpl(render_view_->p2p_socket_dispatcher()); 1442 return new content::P2PTransportImpl(render_view_->p2p_socket_dispatcher());
1442 #else 1443 #else
1443 return NULL; 1444 return NULL;
1444 #endif 1445 #endif
1445 } 1446 }
1446 1447
1447 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) { 1448 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) {
1448 double result = 0.0; 1449 double result = 0.0;
1449 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset( 1450 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset(
1450 t, &result)); 1451 t, &result));
1451 return result; 1452 return result;
(...skipping 23 matching lines...) Expand all
1475 1476
1476 ppapi::Preferences PepperPluginDelegateImpl::GetPreferences() { 1477 ppapi::Preferences PepperPluginDelegateImpl::GetPreferences() {
1477 return ppapi::Preferences(render_view_->webkit_preferences()); 1478 return ppapi::Preferences(render_view_->webkit_preferences());
1478 } 1479 }
1479 1480
1480 void PepperPluginDelegateImpl::PublishInitialPolicy( 1481 void PepperPluginDelegateImpl::PublishInitialPolicy(
1481 scoped_refptr<webkit::ppapi::PluginInstance> instance, 1482 scoped_refptr<webkit::ppapi::PluginInstance> instance,
1482 const std::string& policy) { 1483 const std::string& policy) {
1483 instance->HandlePolicyUpdate(policy); 1484 instance->HandlePolicyUpdate(policy);
1484 } 1485 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698