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 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1173 void PepperPluginDelegateImpl::SaveAs() { | 1173 void PepperPluginDelegateImpl::SaveAs() { |
1174 render_view_->Send(new ViewHostMsg_SaveAs( | 1174 render_view_->Send(new ViewHostMsg_SaveAs( |
1175 render_view_->routing_id())); | 1175 render_view_->routing_id())); |
1176 } | 1176 } |
1177 | 1177 |
1178 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { | 1178 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { |
1179 return render_view_->p2p_socket_dispatcher(); | 1179 return render_view_->p2p_socket_dispatcher(); |
1180 } | 1180 } |
1181 | 1181 |
1182 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() { | 1182 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() { |
| 1183 #if defined(ENABLE_P2P_APIS) |
1183 return new P2PTransportImpl(render_view_->p2p_socket_dispatcher()); | 1184 return new P2PTransportImpl(render_view_->p2p_socket_dispatcher()); |
| 1185 #else |
| 1186 return NULL; |
| 1187 #endif |
1184 } | 1188 } |
OLD | NEW |