OLD | NEW |
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/callback.h" | 10 #include "base/callback.h" |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { | 996 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { |
997 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( | 997 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( |
998 render_view_->routing_id(), restrictions)); | 998 render_view_->routing_id(), restrictions)); |
999 } | 999 } |
1000 | 1000 |
1001 void PepperPluginDelegateImpl::HasUnsupportedFeature() { | 1001 void PepperPluginDelegateImpl::HasUnsupportedFeature() { |
1002 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( | 1002 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( |
1003 render_view_->routing_id())); | 1003 render_view_->routing_id())); |
1004 } | 1004 } |
1005 | 1005 |
| 1006 void PepperPluginDelegateImpl::SaveAs() { |
| 1007 render_view_->Send(new ViewHostMsg_SaveAs( |
| 1008 render_view_->routing_id())); |
| 1009 } |
| 1010 |
1006 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { | 1011 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { |
1007 return render_view_->p2p_socket_dispatcher(); | 1012 return render_view_->p2p_socket_dispatcher(); |
1008 } | 1013 } |
1009 | 1014 |
1010 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() { | 1015 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() { |
1011 return new P2PTransportImpl(render_view_->p2p_socket_dispatcher()); | 1016 return new P2PTransportImpl(render_view_->p2p_socket_dispatcher()); |
1012 } | 1017 } |
OLD | NEW |