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_REQUEST_INFO_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "ppapi/thunk/ppb_url_request_info_api.h" | 9 #include "ppapi/thunk/ppb_url_request_info_api.h" |
10 #include "ppapi/shared_impl/url_request_info_impl.h" | 10 #include "ppapi/shared_impl/url_request_info_impl.h" |
| 11 #include "webkit/plugins/webkit_plugins_export.h" |
11 | 12 |
12 namespace WebKit { | 13 namespace WebKit { |
13 class WebFrame; | 14 class WebFrame; |
14 class WebHTTPBody; | 15 class WebHTTPBody; |
15 class WebURLRequest; | 16 class WebURLRequest; |
16 } | 17 } |
17 | 18 |
18 namespace webkit { | 19 namespace webkit { |
19 namespace ppapi { | 20 namespace ppapi { |
20 | 21 |
21 class PPB_URLRequestInfo_Impl : public ::ppapi::URLRequestInfoImpl { | 22 class WEBKIT_PLUGINS_EXPORT PPB_URLRequestInfo_Impl : |
| 23 public ::ppapi::URLRequestInfoImpl { |
22 public: | 24 public: |
23 explicit PPB_URLRequestInfo_Impl( | 25 explicit PPB_URLRequestInfo_Impl( |
24 PP_Instance instance, | 26 PP_Instance instance, |
25 const ::ppapi::PPB_URLRequestInfo_Data& data); | 27 const ::ppapi::PPB_URLRequestInfo_Data& data); |
26 virtual ~PPB_URLRequestInfo_Impl(); | 28 virtual ~PPB_URLRequestInfo_Impl(); |
27 | 29 |
28 // Creates the WebKit URL request from the current request info. Returns | 30 // Creates the WebKit URL request from the current request info. Returns |
29 // true on success, false if the request is invalid (in which case *dest may | 31 // true on success, false if the request is invalid (in which case *dest may |
30 // be partially initialized). | 32 // be partially initialized). |
31 bool ToWebURLRequest(WebKit::WebFrame* frame, | 33 bool ToWebURLRequest(WebKit::WebFrame* frame, |
(...skipping 18 matching lines...) Expand all Loading... |
50 PP_Time expected_last_modified_time, | 52 PP_Time expected_last_modified_time, |
51 WebKit::WebHTTPBody *http_body); | 53 WebKit::WebHTTPBody *http_body); |
52 | 54 |
53 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Impl); | 55 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Impl); |
54 }; | 56 }; |
55 | 57 |
56 } // namespace ppapi | 58 } // namespace ppapi |
57 } // namespace webkit | 59 } // namespace webkit |
58 | 60 |
59 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ | 61 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ |
OLD | NEW |