| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef TESTS_PPAPI_GETURL_URL_LOAD_REQUEST_H_ | 4 #ifndef TESTS_PPAPI_GETURL_URL_LOAD_REQUEST_H_ |
| 5 #define TESTS_PPAPI_GETURL_URL_LOAD_REQUEST_H_ | 5 #define TESTS_PPAPI_GETURL_URL_LOAD_REQUEST_H_ |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ppapi/c/ppb_file_io.h" | 10 #include "ppapi/c/ppb_file_io.h" |
| 11 #include "ppapi/c/ppb_file_ref.h" | 11 #include "ppapi/c/ppb_file_ref.h" |
| 12 #include "ppapi/c/ppb_url_loader.h" | 12 #include "ppapi/c/ppb_url_loader.h" |
| 13 #include "ppapi/c/ppb_url_request_info.h" | 13 #include "ppapi/c/ppb_url_request_info.h" |
| 14 #include "ppapi/c/ppb_url_response_info.h" | 14 #include "ppapi/c/ppb_url_response_info.h" |
| 15 #include "ppapi/c/pp_instance.h" | 15 #include "ppapi/c/pp_instance.h" |
| 16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
| 17 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
| 18 #if __native_client__ | 18 #if defined(__native_client__) |
| 19 // TODO(polina): add file_io_nacl include | 19 // TODO(polina): add file_io_nacl include |
| 20 #else | 20 #else |
| 21 #include "ppapi/c/trusted/ppb_file_io_trusted.h" | 21 #include "ppapi/c/trusted/ppb_file_io_trusted.h" |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 | 24 |
| 25 class UrlLoadRequest { | 25 class UrlLoadRequest { |
| 26 public: | 26 public: |
| 27 explicit UrlLoadRequest(PP_Instance instance); | 27 explicit UrlLoadRequest(PP_Instance instance); |
| 28 ~UrlLoadRequest(); | 28 ~UrlLoadRequest(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 const PPB_URLResponseInfo* response_interface_; | 70 const PPB_URLResponseInfo* response_interface_; |
| 71 const PPB_URLLoader* loader_interface_; | 71 const PPB_URLLoader* loader_interface_; |
| 72 const PPB_FileIO* fileio_interface_; | 72 const PPB_FileIO* fileio_interface_; |
| 73 | 73 |
| 74 char buffer_[1024]; | 74 char buffer_[1024]; |
| 75 std::string url_body_; | 75 std::string url_body_; |
| 76 int32_t read_offset_; | 76 int32_t read_offset_; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 #endif // TESTS_PPAPI_GETURL_URL_LOAD_REQUEST_H_ | 79 #endif // TESTS_PPAPI_GETURL_URL_LOAD_REQUEST_H_ |
| OLD | NEW |