OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/renderer_host/pepper/pepper_internal_file_ref_backend.
h" | 5 #include "content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.
h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 int32_t PepperInternalFileRefBackend::GetAbsolutePath( | 239 int32_t PepperInternalFileRefBackend::GetAbsolutePath( |
240 ppapi::host::ReplyMessageContext reply_context) { | 240 ppapi::host::ReplyMessageContext reply_context) { |
241 host_->SendReply(reply_context, | 241 host_->SendReply(reply_context, |
242 PpapiPluginMsg_FileRef_GetAbsolutePathReply(path_)); | 242 PpapiPluginMsg_FileRef_GetAbsolutePathReply(path_)); |
243 return PP_OK_COMPLETIONPENDING; | 243 return PP_OK_COMPLETIONPENDING; |
244 } | 244 } |
245 | 245 |
246 int32_t PepperInternalFileRefBackend::HasPermissions(int permissions) const { | 246 int32_t PepperInternalFileRefBackend::HasPermissions(int permissions) const { |
247 base::PlatformFileError error; | 247 base::PlatformFileError error; |
248 CheckFileSystemPermissionsForProcess(GetFileSystemContext(), | 248 CheckFileSystemPermissionsForProcess(GetFileSystemContext().get(), |
249 render_process_id_, | 249 render_process_id_, |
250 GetFileSystemURL(), | 250 GetFileSystemURL(), |
251 permissions, | 251 permissions, |
252 &error); | 252 &error); |
253 return ppapi::PlatformFileErrorToPepperError(error); | 253 return ppapi::PlatformFileErrorToPepperError(error); |
254 } | 254 } |
255 | 255 |
256 } // namespace content | 256 } // namespace content |
OLD | NEW |