| 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 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 bool PepperPluginDelegateImpl::Query( | 1062 bool PepperPluginDelegateImpl::Query( |
| 1063 const GURL& path, | 1063 const GURL& path, |
| 1064 fileapi::FileSystemCallbackDispatcher* dispatcher) { | 1064 fileapi::FileSystemCallbackDispatcher* dispatcher) { |
| 1065 FileSystemDispatcher* file_system_dispatcher = | 1065 FileSystemDispatcher* file_system_dispatcher = |
| 1066 ChildThread::current()->file_system_dispatcher(); | 1066 ChildThread::current()->file_system_dispatcher(); |
| 1067 return file_system_dispatcher->ReadMetadata(path, dispatcher); | 1067 return file_system_dispatcher->ReadMetadata(path, dispatcher); |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 bool PepperPluginDelegateImpl::ReadEntries( |
| 1071 const GURL& path, |
| 1072 fileapi::FileSystemCallbackDispatcher* dispatcher) { |
| 1073 FileSystemDispatcher* file_system_dispatcher = |
| 1074 ChildThread::current()->file_system_dispatcher(); |
| 1075 return file_system_dispatcher->ReadDirectory(path, dispatcher); |
| 1076 } |
| 1077 |
| 1070 bool PepperPluginDelegateImpl::Touch( | 1078 bool PepperPluginDelegateImpl::Touch( |
| 1071 const GURL& path, | 1079 const GURL& path, |
| 1072 const base::Time& last_access_time, | 1080 const base::Time& last_access_time, |
| 1073 const base::Time& last_modified_time, | 1081 const base::Time& last_modified_time, |
| 1074 fileapi::FileSystemCallbackDispatcher* dispatcher) { | 1082 fileapi::FileSystemCallbackDispatcher* dispatcher) { |
| 1075 FileSystemDispatcher* file_system_dispatcher = | 1083 FileSystemDispatcher* file_system_dispatcher = |
| 1076 ChildThread::current()->file_system_dispatcher(); | 1084 ChildThread::current()->file_system_dispatcher(); |
| 1077 return file_system_dispatcher->TouchFile(path, last_access_time, | 1085 return file_system_dispatcher->TouchFile(path, last_access_time, |
| 1078 last_modified_time, dispatcher); | 1086 last_modified_time, dispatcher); |
| 1079 } | 1087 } |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1640 should_close_source); | 1648 should_close_source); |
| 1641 } | 1649 } |
| 1642 | 1650 |
| 1643 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { | 1651 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { |
| 1644 RendererPpapiHostImpl* host = | 1652 RendererPpapiHostImpl* host = |
| 1645 RendererPpapiHostImpl::GetForPPInstance(instance); | 1653 RendererPpapiHostImpl::GetForPPInstance(instance); |
| 1646 return host && host->IsRunningInProcess(); | 1654 return host && host->IsRunningInProcess(); |
| 1647 } | 1655 } |
| 1648 | 1656 |
| 1649 } // namespace content | 1657 } // namespace content |
| OLD | NEW |