| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef PPAPI_CPP_URL_LOADER_H_ | 5 #ifndef PPAPI_CPP_URL_LOADER_H_ |
| 6 #define PPAPI_CPP_URL_LOADER_H_ | 6 #define PPAPI_CPP_URL_LOADER_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_stdint.h" | 8 #include "ppapi/c/pp_stdint.h" |
| 9 #include "ppapi/cpp/resource.h" | 9 #include "ppapi/cpp/resource.h" |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // PPB_URLLoader methods: | 91 // PPB_URLLoader methods: |
| 92 int32_t Open(const URLRequestInfo& request_info, | 92 int32_t Open(const URLRequestInfo& request_info, |
| 93 const CompletionCallback& cc); | 93 const CompletionCallback& cc); |
| 94 int32_t FollowRedirect(const CompletionCallback& cc); | 94 int32_t FollowRedirect(const CompletionCallback& cc); |
| 95 bool GetUploadProgress(int64_t* bytes_sent, | 95 bool GetUploadProgress(int64_t* bytes_sent, |
| 96 int64_t* total_bytes_to_be_sent) const; | 96 int64_t* total_bytes_to_be_sent) const; |
| 97 bool GetDownloadProgress(int64_t* bytes_received, | 97 bool GetDownloadProgress(int64_t* bytes_received, |
| 98 int64_t* total_bytes_to_be_received) const; | 98 int64_t* total_bytes_to_be_received) const; |
| 99 URLResponseInfo GetResponseInfo() const; | 99 URLResponseInfo GetResponseInfo() const; |
| 100 int32_t ReadResponseBody(char* buffer, | 100 int32_t ReadResponseBody(void* buffer, |
| 101 int32_t bytes_to_read, | 101 int32_t bytes_to_read, |
| 102 const CompletionCallback& cc); | 102 const CompletionCallback& cc); |
| 103 int32_t FinishStreamingToFile(const CompletionCallback& cc); | 103 int32_t FinishStreamingToFile(const CompletionCallback& cc); |
| 104 void Close(); | 104 void Close(); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace pp | 107 } // namespace pp |
| 108 | 108 |
| 109 #endif // PPAPI_CPP_URL_LOADER_H_ | 109 #endif // PPAPI_CPP_URL_LOADER_H_ |
| OLD | NEW |