| 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 #include "webkit/glue/plugins/pepper_url_request_info.h" | 5 #include "webkit/glue/plugins/pepper_url_request_info.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "third_party/ppapi/c/pp_var.h" | 9 #include "third_party/ppapi/c/pp_var.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 case PP_URLRequestProperty_URL: | 120 case PP_URLRequestProperty_URL: |
| 121 web_request_.setURL(GURL(value)); | 121 web_request_.setURL(GURL(value)); |
| 122 return true; | 122 return true; |
| 123 case PP_URLRequestProperty_Method: | 123 case PP_URLRequestProperty_Method: |
| 124 web_request_.setHTTPMethod(WebString::fromUTF8(value)); | 124 web_request_.setHTTPMethod(WebString::fromUTF8(value)); |
| 125 return true; | 125 return true; |
| 126 case PP_URLRequestProperty_Headers: | 126 case PP_URLRequestProperty_Headers: |
| 127 // TODO(darin): Support extra request headers | 127 // TODO(darin): Support extra request headers |
| 128 NOTIMPLEMENTED(); | 128 NOTIMPLEMENTED(); |
| 129 return false; | 129 return false; |
| 130 default: |
| 131 return false; |
| 130 } | 132 } |
| 131 return false; | |
| 132 } | 133 } |
| 133 | 134 |
| 134 bool URLRequestInfo::AppendDataToBody(const std::string& data) { | 135 bool URLRequestInfo::AppendDataToBody(const std::string& data) { |
| 135 NOTIMPLEMENTED(); // TODO(darin): Implement me! | 136 NOTIMPLEMENTED(); // TODO(darin): Implement me! |
| 136 return false; | 137 return false; |
| 137 } | 138 } |
| 138 | 139 |
| 139 bool URLRequestInfo::AppendFileToBody(FileRef* file_ref, | 140 bool URLRequestInfo::AppendFileToBody(FileRef* file_ref, |
| 140 int64_t start_offset, | 141 int64_t start_offset, |
| 141 int64_t number_of_bytes, | 142 int64_t number_of_bytes, |
| 142 PP_Time expected_last_modified_time) { | 143 PP_Time expected_last_modified_time) { |
| 143 NOTIMPLEMENTED(); // TODO(darin): Implement me! | 144 NOTIMPLEMENTED(); // TODO(darin): Implement me! |
| 144 return false; | 145 return false; |
| 145 } | 146 } |
| 146 | 147 |
| 147 } // namespace pepper | 148 } // namespace pepper |
| OLD | NEW |