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