| 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_BASE_URLLOADERJOB_H_ | 6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_ |
| 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_ | 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_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/cpp/completion_callback.h> | 11 #include <ppapi/cpp/completion_callback.h> |
| 11 #include <ppapi/cpp/url_loader.h> | 12 #include <ppapi/cpp/url_loader.h> |
| 12 #include <ppapi/cpp/url_request_info.h> | 13 #include <ppapi/cpp/url_request_info.h> |
| 13 #include <ppapi/cpp/url_response_info.h> | 14 #include <ppapi/cpp/url_response_info.h> |
| 15 #if ADHOC_PPAPI_VERSION >= 18 |
| 16 #include <ppapi/utility/completion_callback_factory.h> |
| 17 #endif |
| 14 #include <string> | 18 #include <string> |
| 15 #include <vector> | 19 #include <vector> |
| 16 #include "MainThreadRunner.h" | 20 #include "MainThreadRunner.h" |
| 17 | 21 |
| 18 class UrlLoaderJob : public MainThreadJob { | 22 class UrlLoaderJob : public MainThreadJob { |
| 19 public: | 23 public: |
| 20 UrlLoaderJob(); | 24 UrlLoaderJob(); |
| 21 ~UrlLoaderJob(); | 25 ~UrlLoaderJob(); |
| 22 | 26 |
| 23 // AppendField() adds the key and value to the request body | 27 // AppendField() adds the key and value to the request body |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 std::vector<char> *dst_; | 83 std::vector<char> *dst_; |
| 80 std::string method_; | 84 std::string method_; |
| 81 bool did_open_; | 85 bool did_open_; |
| 82 int start_; | 86 int start_; |
| 83 int length_; | 87 int length_; |
| 84 Result *result_dst_; | 88 Result *result_dst_; |
| 85 char buf_[4096]; | 89 char buf_[4096]; |
| 86 }; | 90 }; |
| 87 | 91 |
| 88 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_ | 92 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_ |
| OLD | NEW |