OLD | NEW |
1 // Copyright (c) 2012 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 | 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 int64_t* total_bytes_to_be_received) OVERRIDE; | 54 int64_t* total_bytes_to_be_received) OVERRIDE; |
55 virtual PP_Resource GetResponseInfo() OVERRIDE; | 55 virtual PP_Resource GetResponseInfo() OVERRIDE; |
56 virtual int32_t ReadResponseBody( | 56 virtual int32_t ReadResponseBody( |
57 void* buffer, | 57 void* buffer, |
58 int32_t bytes_to_read, | 58 int32_t bytes_to_read, |
59 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; | 59 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; |
60 virtual int32_t FinishStreamingToFile( | 60 virtual int32_t FinishStreamingToFile( |
61 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; | 61 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; |
62 virtual void Close() OVERRIDE; | 62 virtual void Close() OVERRIDE; |
63 virtual void GrantUniversalAccess() OVERRIDE; | 63 virtual void GrantUniversalAccess() OVERRIDE; |
64 virtual void RegisterStatusCallback( | 64 virtual void SetStatusCallback( |
65 PP_URLLoaderTrusted_StatusCallback cb) OVERRIDE; | 65 PP_URLLoaderTrusted_StatusCallback cb) OVERRIDE; |
66 virtual bool GetResponseInfoData( | 66 virtual bool GetResponseInfoData( |
67 ::ppapi::URLResponseInfoData* data) OVERRIDE; | 67 ::ppapi::URLResponseInfoData* data) OVERRIDE; |
68 | 68 |
69 // WebKit::WebURLLoaderClient implementation. | 69 // WebKit::WebURLLoaderClient implementation. |
70 virtual void willSendRequest(WebKit::WebURLLoader* loader, | 70 virtual void willSendRequest(WebKit::WebURLLoader* loader, |
71 WebKit::WebURLRequest& new_request, | 71 WebKit::WebURLRequest& new_request, |
72 const WebKit::WebURLResponse& redir_response); | 72 const WebKit::WebURLResponse& redir_response); |
73 virtual void didSendData(WebKit::WebURLLoader* loader, | 73 virtual void didSendData(WebKit::WebURLLoader* loader, |
74 unsigned long long bytes_sent, | 74 unsigned long long bytes_sent, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 scoped_ptr< ::ppapi::URLResponseInfoData > response_info_; | 167 scoped_ptr< ::ppapi::URLResponseInfoData > response_info_; |
168 ::ppapi::ScopedPPResource response_info_file_ref_; | 168 ::ppapi::ScopedPPResource response_info_file_ref_; |
169 | 169 |
170 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl); | 170 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl); |
171 }; | 171 }; |
172 | 172 |
173 } // namespace ppapi | 173 } // namespace ppapi |
174 } // namespace webkit | 174 } // namespace webkit |
175 | 175 |
176 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ | 176 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ |
OLD | NEW |