OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_URL_REQUEST_INFO_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_URL_REQUEST_INFO_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "third_party/ppapi/c/ppb_url_request_info.h" |
| 11 #include "webkit/glue/plugins/pepper_resource.h" |
| 12 |
| 13 namespace pepper { |
| 14 |
| 15 class URLRequestInfo : public Resource { |
| 16 public: |
| 17 explicit URLRequestInfo(PluginModule* module); |
| 18 virtual ~URLRequestInfo(); |
| 19 |
| 20 // Returns a pointer to the interface implementing PPB_URLRequestInfo that is |
| 21 // exposed to the plugin. |
| 22 static const PPB_URLRequestInfo* GetInterface(); |
| 23 |
| 24 // Resource overrides. |
| 25 URLRequestInfo* AsURLRequestInfo() { return this; } |
| 26 |
| 27 // PPB_URLRequestInfo implementation. |
| 28 bool SetBooleanProperty(PP_URLRequestProperty property, bool value); |
| 29 bool SetStringProperty(PP_URLRequestProperty property, |
| 30 const std::string& value); |
| 31 bool AppendDataToBody(const std::string& data); |
| 32 }; |
| 33 |
| 34 } // namespace pepper |
| 35 |
| 36 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_URL_REQUEST_INFO_H_ |
OLD | NEW |