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 "ppapi/proxy/file_ref_resource.h" | 5 #include "ppapi/proxy/file_ref_resource.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
8 #include "ppapi/c/pp_directory_entry.h" | 10 #include "ppapi/c/pp_directory_entry.h" |
9 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
11 #include "ppapi/proxy/ppapi_messages.h" | 13 #include "ppapi/proxy/ppapi_messages.h" |
12 #include "ppapi/shared_impl/array_writer.h" | 14 #include "ppapi/shared_impl/array_writer.h" |
13 #include "ppapi/shared_impl/file_ref_util.h" | 15 #include "ppapi/shared_impl/file_ref_util.h" |
14 #include "ppapi/shared_impl/resource.h" | 16 #include "ppapi/shared_impl/resource.h" |
15 #include "ppapi/shared_impl/resource_tracker.h" | 17 #include "ppapi/shared_impl/resource_tracker.h" |
16 #include "ppapi/shared_impl/var.h" | 18 #include "ppapi/shared_impl/var.h" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 callback->Run(params.result()); | 261 callback->Run(params.result()); |
260 } | 262 } |
261 | 263 |
262 bool FileRefResource::uses_internal_paths() const { | 264 bool FileRefResource::uses_internal_paths() const { |
263 return (create_info_.file_system_type != PP_FILESYSTEMTYPE_EXTERNAL) || | 265 return (create_info_.file_system_type != PP_FILESYSTEMTYPE_EXTERNAL) || |
264 !create_info_.internal_path.empty(); | 266 !create_info_.internal_path.empty(); |
265 } | 267 } |
266 | 268 |
267 } // namespace proxy | 269 } // namespace proxy |
268 } // namespace ppapi | 270 } // namespace ppapi |
OLD | NEW |