| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual void LastPluginRefWasDeleted(bool instance_destroyed); | 49 virtual void LastPluginRefWasDeleted(bool instance_destroyed); |
| 50 | 50 |
| 51 // PPB_URLLoader implementation. | 51 // PPB_URLLoader implementation. |
| 52 int32_t Open(PPB_URLRequestInfo_Impl* request, | 52 int32_t Open(PPB_URLRequestInfo_Impl* request, |
| 53 PP_CompletionCallback callback); | 53 PP_CompletionCallback callback); |
| 54 int32_t FollowRedirect(PP_CompletionCallback callback); | 54 int32_t FollowRedirect(PP_CompletionCallback callback); |
| 55 bool GetUploadProgress(int64_t* bytes_sent, | 55 bool GetUploadProgress(int64_t* bytes_sent, |
| 56 int64_t* total_bytes_to_be_sent); | 56 int64_t* total_bytes_to_be_sent); |
| 57 bool GetDownloadProgress(int64_t* bytes_received, | 57 bool GetDownloadProgress(int64_t* bytes_received, |
| 58 int64_t* total_bytes_to_be_received); | 58 int64_t* total_bytes_to_be_received); |
| 59 int32_t ReadResponseBody(char* buffer, int32_t bytes_to_read, | 59 int32_t ReadResponseBody(void* buffer, int32_t bytes_to_read, |
| 60 PP_CompletionCallback callback); | 60 PP_CompletionCallback callback); |
| 61 int32_t FinishStreamingToFile(PP_CompletionCallback callback); | 61 int32_t FinishStreamingToFile(PP_CompletionCallback callback); |
| 62 void Close(); | 62 void Close(); |
| 63 | 63 |
| 64 // PPB_URLLoaderTrusted implementation. | 64 // PPB_URLLoaderTrusted implementation. |
| 65 void GrantUniversalAccess(); | 65 void GrantUniversalAccess(); |
| 66 void SetStatusCallback(PP_URLLoaderTrusted_StatusCallback cb); | 66 void SetStatusCallback(PP_URLLoaderTrusted_StatusCallback cb); |
| 67 | 67 |
| 68 // WebKit::WebURLLoaderClient implementation. | 68 // WebKit::WebURLLoaderClient implementation. |
| 69 virtual void willSendRequest(WebKit::WebURLLoader* loader, | 69 virtual void willSendRequest(WebKit::WebURLLoader* loader, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 PP_URLLoaderTrusted_StatusCallback status_callback_; | 139 PP_URLLoaderTrusted_StatusCallback status_callback_; |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl); | 141 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace ppapi | 144 } // namespace ppapi |
| 145 } // namespace webkit | 145 } // namespace webkit |
| 146 | 146 |
| 147 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ | 147 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ |
| OLD | NEW |