| 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_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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 bool SetStringProperty(PP_URLRequestProperty property, | 39 bool SetStringProperty(PP_URLRequestProperty property, |
| 40 const std::string& value); | 40 const std::string& value); |
| 41 bool AppendDataToBody(const std::string& data); | 41 bool AppendDataToBody(const std::string& data); |
| 42 bool AppendFileToBody(PPB_FileRef_Impl* file_ref, | 42 bool AppendFileToBody(PPB_FileRef_Impl* file_ref, |
| 43 int64_t start_offset, | 43 int64_t start_offset, |
| 44 int64_t number_of_bytes, | 44 int64_t number_of_bytes, |
| 45 PP_Time expected_last_modified_time); | 45 PP_Time expected_last_modified_time); |
| 46 | 46 |
| 47 WebKit::WebURLRequest ToWebURLRequest(WebKit::WebFrame* frame) const; | 47 WebKit::WebURLRequest ToWebURLRequest(WebKit::WebFrame* frame) const; |
| 48 | 48 |
| 49 // Whether universal access is required to use this request. |
| 50 bool RequiresUniversalAccess() const; |
| 51 |
| 49 bool follow_redirects() { return follow_redirects_; } | 52 bool follow_redirects() { return follow_redirects_; } |
| 50 | 53 |
| 51 bool record_download_progress() const { return record_download_progress_; } | 54 bool record_download_progress() const { return record_download_progress_; } |
| 52 bool record_upload_progress() const { return record_upload_progress_; } | 55 bool record_upload_progress() const { return record_upload_progress_; } |
| 56 bool use_custom_referrer() const { return use_custom_referrer_; } |
| 53 | 57 |
| 54 private: | 58 private: |
| 55 struct BodyItem; | 59 struct BodyItem; |
| 56 typedef std::vector<BodyItem> Body; | 60 typedef std::vector<BodyItem> Body; |
| 57 | 61 |
| 58 std::string url_; | 62 std::string url_; |
| 59 std::string method_; | 63 std::string method_; |
| 60 std::string headers_; | 64 std::string headers_; |
| 61 Body body_; | 65 Body body_; |
| 62 | 66 |
| 63 bool stream_to_file_; | 67 bool stream_to_file_; |
| 64 bool follow_redirects_; | 68 bool follow_redirects_; |
| 65 bool record_download_progress_; | 69 bool record_download_progress_; |
| 66 bool record_upload_progress_; | 70 bool record_upload_progress_; |
| 67 | 71 |
| 72 bool use_custom_referrer_; |
| 73 std::string custom_referrer_url_; |
| 74 |
| 68 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Impl); | 75 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Impl); |
| 69 }; | 76 }; |
| 70 | 77 |
| 71 } // namespace ppapi | 78 } // namespace ppapi |
| 72 } // namespace webkit | 79 } // namespace webkit |
| 73 | 80 |
| 74 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ | 81 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ |
| OLD | NEW |