| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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_GLUE_PLUGINS_PEPPER_URL_REQUEST_INFO_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_URL_REQUEST_INFO_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_URL_REQUEST_INFO_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_URL_REQUEST_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class URLRequestInfo : public Resource { | 23 class URLRequestInfo : public Resource { |
| 24 public: | 24 public: |
| 25 explicit URLRequestInfo(PluginModule* module); | 25 explicit URLRequestInfo(PluginModule* module); |
| 26 virtual ~URLRequestInfo(); | 26 virtual ~URLRequestInfo(); |
| 27 | 27 |
| 28 // Returns a pointer to the interface implementing PPB_URLRequestInfo that is | 28 // Returns a pointer to the interface implementing PPB_URLRequestInfo that is |
| 29 // exposed to the plugin. | 29 // exposed to the plugin. |
| 30 static const PPB_URLRequestInfo* GetInterface(); | 30 static const PPB_URLRequestInfo* GetInterface(); |
| 31 | 31 |
| 32 // Resource overrides. | 32 // Resource overrides. |
| 33 URLRequestInfo* AsURLRequestInfo() { return this; } | 33 virtual URLRequestInfo* AsURLRequestInfo(); |
| 34 | 34 |
| 35 // PPB_URLRequestInfo implementation. | 35 // PPB_URLRequestInfo implementation. |
| 36 bool SetBooleanProperty(PP_URLRequestProperty property, bool value); | 36 bool SetBooleanProperty(PP_URLRequestProperty property, bool value); |
| 37 bool SetStringProperty(PP_URLRequestProperty property, | 37 bool SetStringProperty(PP_URLRequestProperty property, |
| 38 const std::string& value); | 38 const std::string& value); |
| 39 bool AppendDataToBody(const std::string& data); | 39 bool AppendDataToBody(const std::string& data); |
| 40 bool AppendFileToBody(FileRef* file_ref, | 40 bool AppendFileToBody(FileRef* file_ref, |
| 41 int64_t start_offset, | 41 int64_t start_offset, |
| 42 int64_t number_of_bytes, | 42 int64_t number_of_bytes, |
| 43 PP_Time expected_last_modified_time); | 43 PP_Time expected_last_modified_time); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 60 | 60 |
| 61 bool stream_to_file_; | 61 bool stream_to_file_; |
| 62 bool follow_redirects_; | 62 bool follow_redirects_; |
| 63 bool record_download_progress_; | 63 bool record_download_progress_; |
| 64 bool record_upload_progress_; | 64 bool record_upload_progress_; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace pepper | 67 } // namespace pepper |
| 68 | 68 |
| 69 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_URL_REQUEST_INFO_H_ | 69 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_URL_REQUEST_INFO_H_ |
| OLD | NEW |