| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/pepper_plugin_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 PepperFileSystemHost* fs_host = host->AsPepperFileSystemHost(); | 1031 PepperFileSystemHost* fs_host = host->AsPepperFileSystemHost(); |
| 1032 return fs_host ? fs_host->GetRootUrl() : GURL(); | 1032 return fs_host ? fs_host->GetRootUrl() : GURL(); |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 void PepperPluginDelegateImpl::MakeDirectory( | 1035 void PepperPluginDelegateImpl::MakeDirectory( |
| 1036 const GURL& path, | 1036 const GURL& path, |
| 1037 bool recursive, | 1037 bool recursive, |
| 1038 const StatusCallback& callback) { | 1038 const StatusCallback& callback) { |
| 1039 FileSystemDispatcher* file_system_dispatcher = | 1039 FileSystemDispatcher* file_system_dispatcher = |
| 1040 ChildThread::current()->file_system_dispatcher(); | 1040 ChildThread::current()->file_system_dispatcher(); |
| 1041 file_system_dispatcher->Create(path, false, true, recursive, callback); | 1041 file_system_dispatcher->CreateDirectory( |
| 1042 path, false /* exclusive */, recursive, callback); |
| 1042 } | 1043 } |
| 1043 | 1044 |
| 1044 void PepperPluginDelegateImpl::Query( | 1045 void PepperPluginDelegateImpl::Query( |
| 1045 const GURL& path, | 1046 const GURL& path, |
| 1046 const MetadataCallback& success_callback, | 1047 const MetadataCallback& success_callback, |
| 1047 const StatusCallback& error_callback) { | 1048 const StatusCallback& error_callback) { |
| 1048 FileSystemDispatcher* file_system_dispatcher = | 1049 FileSystemDispatcher* file_system_dispatcher = |
| 1049 ChildThread::current()->file_system_dispatcher(); | 1050 ChildThread::current()->file_system_dispatcher(); |
| 1050 file_system_dispatcher->ReadMetadata( | 1051 file_system_dispatcher->ReadMetadata( |
| 1051 path, success_callback, error_callback); | 1052 path, success_callback, error_callback); |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1702 should_close_source); | 1703 should_close_source); |
| 1703 } | 1704 } |
| 1704 | 1705 |
| 1705 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { | 1706 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { |
| 1706 RendererPpapiHostImpl* host = | 1707 RendererPpapiHostImpl* host = |
| 1707 RendererPpapiHostImpl::GetForPPInstance(instance); | 1708 RendererPpapiHostImpl::GetForPPInstance(instance); |
| 1708 return host && host->IsRunningInProcess(); | 1709 return host && host->IsRunningInProcess(); |
| 1709 } | 1710 } |
| 1710 | 1711 |
| 1711 } // namespace content | 1712 } // namespace content |
| OLD | NEW |