| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_PEPPER_PEPPERFILEIOJOB_H_ | 6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_PEPPER_PEPPERFILEIOJOB_H_ |
| 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_PEPPER_PEPPERFILEIOJOB_H_ | 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_PEPPER_PEPPERFILEIOJOB_H_ |
| 8 | 8 |
| 9 #include "../util/ppapi_version.h" |
| 9 #include <ppapi/c/pp_errors.h> | 10 #include <ppapi/c/pp_errors.h> |
| 10 #include <ppapi/c/pp_file_info.h> | 11 #include <ppapi/c/pp_file_info.h> |
| 11 #include <ppapi/cpp/completion_callback.h> | 12 #include <ppapi/cpp/completion_callback.h> |
| 12 #include <ppapi/cpp/file_io.h> | 13 #include <ppapi/cpp/file_io.h> |
| 13 #include <ppapi/cpp/file_ref.h> | 14 #include <ppapi/cpp/file_ref.h> |
| 14 #include <ppapi/cpp/file_system.h> | 15 #include <ppapi/cpp/file_system.h> |
| 15 #include <ppapi/cpp/url_loader.h> | 16 #include <ppapi/cpp/url_loader.h> |
| 16 #include <ppapi/cpp/url_request_info.h> | 17 #include <ppapi/cpp/url_request_info.h> |
| 17 #include <ppapi/cpp/url_response_info.h> | 18 #include <ppapi/cpp/url_response_info.h> |
| 19 #if ADHOC_PPAPI_VERSION >= 18 |
| 20 #include <ppapi/utility/completion_callback_factory.h> |
| 21 #endif |
| 18 #include <string> | 22 #include <string> |
| 19 #include <vector> | 23 #include <vector> |
| 20 #include <set> | 24 #include <set> |
| 21 #include "../base/MainThreadRunner.h" | 25 #include "../base/MainThreadRunner.h" |
| 22 #include "../util/macros.h" | 26 #include "../util/macros.h" |
| 23 #include "PepperDirectoryReader.h" | 27 #include "PepperDirectoryReader.h" |
| 24 | 28 |
| 25 typedef enum { | 29 typedef enum { |
| 26 OPEN_FILE_SYSTEM = 0, | 30 OPEN_FILE_SYSTEM = 0, |
| 27 OPEN_FILE, | 31 OPEN_FILE, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 int64_t len_; | 85 int64_t len_; |
| 82 int32_t flags_; | 86 int32_t flags_; |
| 83 MainThreadRunner::JobEntry *job_entry_; | 87 MainThreadRunner::JobEntry *job_entry_; |
| 84 | 88 |
| 85 void Finish(int32_t result); | 89 void Finish(int32_t result); |
| 86 | 90 |
| 87 DISALLOW_COPY_AND_ASSIGN(PepperFileIOJob); | 91 DISALLOW_COPY_AND_ASSIGN(PepperFileIOJob); |
| 88 }; | 92 }; |
| 89 | 93 |
| 90 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_PEPPER_PEPPERFILEIOJOB_H_ | 94 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_PEPPER_PEPPERFILEIOJOB_H_ |
| OLD | NEW |