| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_PEPPER_URL_RESPONSE_INFO_UTIL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_URL_RESPONSE_INFO_UTIL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_URL_RESPONSE_INFO_UTIL_H_ | 6 #define CONTENT_RENDERER_PEPPER_URL_RESPONSE_INFO_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/shared_impl/url_response_info_data.h" | 10 #include "ppapi/shared_impl/url_response_info_data.h" |
| 11 | 11 |
| 12 namespace WebKit { | 12 namespace WebKit { |
| 13 class WebURLResponse; | 13 class WebURLResponse; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class RendererPpapiHostImpl; | |
| 18 | 17 |
| 19 typedef base::Callback<void(const ppapi::URLResponseInfoData&)> | 18 typedef base::Callback<void(const ppapi::URLResponseInfoData&)> |
| 20 DataFromWebURLResponseCallback; | 19 DataFromWebURLResponseCallback; |
| 21 | 20 |
| 22 // The returned object will have one plugin reference to the "body_as_file_ref" | 21 // The returned object will have one plugin reference to the "body_as_file_ref" |
| 23 // if it's non-null. It's expected that the result of this function will be | 22 // if it's non-null. It's expected that the result of this function will be |
| 24 // passed to the plugin. | 23 // passed to the plugin. |
| 25 void DataFromWebURLResponse(RendererPpapiHostImpl* host_impl, | 24 void DataFromWebURLResponse(PP_Instance pp_instance, |
| 26 PP_Instance pp_instance, | |
| 27 const WebKit::WebURLResponse& response, | 25 const WebKit::WebURLResponse& response, |
| 28 const DataFromWebURLResponseCallback& callback); | 26 const DataFromWebURLResponseCallback& callback); |
| 29 | 27 |
| 30 } // namespace content | 28 } // namespace content |
| 31 | 29 |
| 32 #endif // CONTENT_RENDERER_PEPPER_URL_RESPONSE_INFO_UTIL_H_ | 30 #endif // CONTENT_RENDERER_PEPPER_URL_RESPONSE_INFO_UTIL_H_ |
| OLD | NEW |