| 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_HTTP2_HTTP2OPENJOB_H_ | 6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_HTTP2_HTTP2OPENJOB_H_ |
| 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_HTTP2_HTTP2OPENJOB_H_ | 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_HTTP2_HTTP2OPENJOB_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 "../base/MainThreadRunner.h" | 24 #include "../base/MainThreadRunner.h" |
| 21 #include "../util/macros.h" | 25 #include "../util/macros.h" |
| 22 #include "HTTP2ProgressHandler.h" | 26 #include "HTTP2ProgressHandler.h" |
| 23 | 27 |
| 24 class HTTP2OpenJob : public MainThreadJob { | 28 class HTTP2OpenJob : public MainThreadJob { |
| 25 public: | 29 public: |
| 26 HTTP2OpenJob(); | 30 HTTP2OpenJob(); |
| 27 ~HTTP2OpenJob(); | 31 ~HTTP2OpenJob(); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void ReportProgress(); | 93 void ReportProgress(); |
| 90 | 94 |
| 91 MainThreadRunner::JobEntry *job_entry_; | 95 MainThreadRunner::JobEntry *job_entry_; |
| 92 | 96 |
| 93 void Finish(int32_t result); | 97 void Finish(int32_t result); |
| 94 | 98 |
| 95 DISALLOW_COPY_AND_ASSIGN(HTTP2OpenJob); | 99 DISALLOW_COPY_AND_ASSIGN(HTTP2OpenJob); |
| 96 }; | 100 }; |
| 97 | 101 |
| 98 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_HTTP2_HTTP2OPENJOB_H_ | 102 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_HTTP2_HTTP2OPENJOB_H_ |
| OLD | NEW |