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 blink { |
13 class WebURLResponse; | 13 class WebURLResponse; |
14 } | 14 } |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class RendererPpapiHostImpl; | 17 class RendererPpapiHostImpl; |
18 | 18 |
19 typedef base::Callback<void(const ppapi::URLResponseInfoData&)> | 19 typedef base::Callback<void(const ppapi::URLResponseInfoData&)> |
20 DataFromWebURLResponseCallback; | 20 DataFromWebURLResponseCallback; |
21 | 21 |
22 // The returned object will have one plugin reference to the "body_as_file_ref" | 22 // 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 | 23 // if it's non-null. It's expected that the result of this function will be |
24 // passed to the plugin. | 24 // passed to the plugin. |
25 void DataFromWebURLResponse(RendererPpapiHostImpl* host_impl, | 25 void DataFromWebURLResponse(RendererPpapiHostImpl* host_impl, |
26 PP_Instance pp_instance, | 26 PP_Instance pp_instance, |
27 const WebKit::WebURLResponse& response, | 27 const blink::WebURLResponse& response, |
28 const DataFromWebURLResponseCallback& callback); | 28 const DataFromWebURLResponseCallback& callback); |
29 | 29 |
30 } // namespace content | 30 } // namespace content |
31 | 31 |
32 #endif // CONTENT_RENDERER_PEPPER_URL_RESPONSE_INFO_UTIL_H_ | 32 #endif // CONTENT_RENDERER_PEPPER_URL_RESPONSE_INFO_UTIL_H_ |
OLD | NEW |