| 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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class PPB_URLRequestInfo_Impl; | 29 class PPB_URLRequestInfo_Impl; |
| 30 class PPB_URLResponseInfo_Impl; | 30 class PPB_URLResponseInfo_Impl; |
| 31 | 31 |
| 32 class PPB_URLLoader_Impl : public Resource, | 32 class PPB_URLLoader_Impl : public Resource, |
| 33 public ::ppapi::thunk::PPB_URLLoader_API, | 33 public ::ppapi::thunk::PPB_URLLoader_API, |
| 34 public WebKit::WebURLLoaderClient { | 34 public WebKit::WebURLLoaderClient { |
| 35 public: | 35 public: |
| 36 PPB_URLLoader_Impl(PluginInstance* instance, bool main_document_loader); | 36 PPB_URLLoader_Impl(PluginInstance* instance, bool main_document_loader); |
| 37 virtual ~PPB_URLLoader_Impl(); | 37 virtual ~PPB_URLLoader_Impl(); |
| 38 | 38 |
| 39 // ResourceObjectBase overrides. | 39 // Resource overrides. |
| 40 virtual ::ppapi::thunk::PPB_URLLoader_API* AsPPB_URLLoader_API() OVERRIDE; | 40 virtual ::ppapi::thunk::PPB_URLLoader_API* AsPPB_URLLoader_API() OVERRIDE; |
| 41 | 41 virtual void InstanceWasDeleted() OVERRIDE; |
| 42 // Resource overrides. | |
| 43 virtual void ClearInstance() OVERRIDE; | |
| 44 | 42 |
| 45 // PPB_URLLoader_API implementation. | 43 // PPB_URLLoader_API implementation. |
| 46 virtual int32_t Open(PP_Resource request_id, | 44 virtual int32_t Open(PP_Resource request_id, |
| 47 PP_CompletionCallback callback) OVERRIDE; | 45 PP_CompletionCallback callback) OVERRIDE; |
| 48 virtual int32_t FollowRedirect(PP_CompletionCallback callback) OVERRIDE; | 46 virtual int32_t FollowRedirect(PP_CompletionCallback callback) OVERRIDE; |
| 49 virtual PP_Bool GetUploadProgress(int64_t* bytes_sent, | 47 virtual PP_Bool GetUploadProgress(int64_t* bytes_sent, |
| 50 int64_t* total_bytes_to_be_sent) OVERRIDE; | 48 int64_t* total_bytes_to_be_sent) OVERRIDE; |
| 51 virtual PP_Bool GetDownloadProgress( | 49 virtual PP_Bool GetDownloadProgress( |
| 52 int64_t* bytes_received, | 50 int64_t* bytes_received, |
| 53 int64_t* total_bytes_to_be_received) OVERRIDE; | 51 int64_t* total_bytes_to_be_received) OVERRIDE; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 141 |
| 144 PP_URLLoaderTrusted_StatusCallback status_callback_; | 142 PP_URLLoaderTrusted_StatusCallback status_callback_; |
| 145 | 143 |
| 146 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl); | 144 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl); |
| 147 }; | 145 }; |
| 148 | 146 |
| 149 } // namespace ppapi | 147 } // namespace ppapi |
| 150 } // namespace webkit | 148 } // namespace webkit |
| 151 | 149 |
| 152 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ | 150 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ |
| OLD | NEW |