| 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/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1225 base::PlatformFileError PepperPluginDelegateImpl::GetDirContents( | 1225 base::PlatformFileError PepperPluginDelegateImpl::GetDirContents( |
| 1226 const webkit::ppapi::PepperFilePath& path, | 1226 const webkit::ppapi::PepperFilePath& path, |
| 1227 webkit::ppapi::DirContents* contents) { | 1227 webkit::ppapi::DirContents* contents) { |
| 1228 base::PlatformFileError error; | 1228 base::PlatformFileError error; |
| 1229 IPC::Message* msg = new PepperFileMsg_GetDirContents(path, contents, &error); | 1229 IPC::Message* msg = new PepperFileMsg_GetDirContents(path, contents, &error); |
| 1230 if (!render_view_->Send(msg)) | 1230 if (!render_view_->Send(msg)) |
| 1231 return base::PLATFORM_FILE_ERROR_FAILED; | 1231 return base::PLATFORM_FILE_ERROR_FAILED; |
| 1232 return error; | 1232 return error; |
| 1233 } | 1233 } |
| 1234 | 1234 |
| 1235 void PepperPluginDelegateImpl::SyncGetFileSystemPlatformPath( |
| 1236 const GURL& url, FilePath* platform_path) { |
| 1237 RenderThread::current()->Send(new FileSystemHostMsg_SyncGetPlatformPath( |
| 1238 url, platform_path)); |
| 1239 } |
| 1240 |
| 1235 scoped_refptr<base::MessageLoopProxy> | 1241 scoped_refptr<base::MessageLoopProxy> |
| 1236 PepperPluginDelegateImpl::GetFileThreadMessageLoopProxy() { | 1242 PepperPluginDelegateImpl::GetFileThreadMessageLoopProxy() { |
| 1237 return RenderThread::current()->GetFileThreadMessageLoopProxy(); | 1243 return RenderThread::current()->GetFileThreadMessageLoopProxy(); |
| 1238 } | 1244 } |
| 1239 | 1245 |
| 1240 int32_t PepperPluginDelegateImpl::ConnectTcp( | 1246 int32_t PepperPluginDelegateImpl::ConnectTcp( |
| 1241 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 1247 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
| 1242 const char* host, | 1248 const char* host, |
| 1243 uint16_t port) { | 1249 uint16_t port) { |
| 1244 int request_id = pending_connect_tcps_.Add( | 1250 int request_id = pending_connect_tcps_.Add( |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 | 1473 |
| 1468 ppapi::Preferences PepperPluginDelegateImpl::GetPreferences() { | 1474 ppapi::Preferences PepperPluginDelegateImpl::GetPreferences() { |
| 1469 return ppapi::Preferences(render_view_->webkit_preferences()); | 1475 return ppapi::Preferences(render_view_->webkit_preferences()); |
| 1470 } | 1476 } |
| 1471 | 1477 |
| 1472 void PepperPluginDelegateImpl::PublishInitialPolicy( | 1478 void PepperPluginDelegateImpl::PublishInitialPolicy( |
| 1473 scoped_refptr<webkit::ppapi::PluginInstance> instance, | 1479 scoped_refptr<webkit::ppapi::PluginInstance> instance, |
| 1474 const std::string& policy) { | 1480 const std::string& policy) { |
| 1475 instance->HandlePolicyUpdate(policy); | 1481 instance->HandlePolicyUpdate(policy); |
| 1476 } | 1482 } |
| OLD | NEW |