| 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 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "googleurl/src/url_util.h" | 10 #include "googleurl/src/url_util.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 const int32_t kDefaultPrefetchBufferUpperThreshold = 100 * 1000 * 1000; | 43 const int32_t kDefaultPrefetchBufferUpperThreshold = 100 * 1000 * 1000; |
| 44 const int32_t kDefaultPrefetchBufferLowerThreshold = 50 * 1000 * 1000; | 44 const int32_t kDefaultPrefetchBufferLowerThreshold = 50 * 1000 * 1000; |
| 45 | 45 |
| 46 } // namespace | 46 } // namespace |
| 47 | 47 |
| 48 | 48 |
| 49 PPB_URLRequestInfo_Impl::PPB_URLRequestInfo_Impl( | 49 PPB_URLRequestInfo_Impl::PPB_URLRequestInfo_Impl( |
| 50 PP_Instance instance, | 50 PP_Instance instance, |
| 51 const PPB_URLRequestInfo_Data& data) | 51 const PPB_URLRequestInfo_Data& data) |
| 52 : URLRequestInfoImpl(instance, data) { | 52 : PPB_URLRequestInfo_Shared(instance, data) { |
| 53 } | 53 } |
| 54 | 54 |
| 55 PPB_URLRequestInfo_Impl::~PPB_URLRequestInfo_Impl() { | 55 PPB_URLRequestInfo_Impl::~PPB_URLRequestInfo_Impl() { |
| 56 } | 56 } |
| 57 | 57 |
| 58 bool PPB_URLRequestInfo_Impl::ToWebURLRequest(WebFrame* frame, | 58 bool PPB_URLRequestInfo_Impl::ToWebURLRequest(WebFrame* frame, |
| 59 WebURLRequest* dest) { | 59 WebURLRequest* dest) { |
| 60 // In the out-of-process case, we've received the PPB_URLRequestInfo_Data | 60 // In the out-of-process case, we've received the PPB_URLRequestInfo_Data |
| 61 // from the untrusted plugin and done no validation on it. We need to be | 61 // from the untrusted plugin and done no validation on it. We need to be |
| 62 // sure it's not being malicious by checking everything for consistency. | 62 // sure it's not being malicious by checking everything for consistency. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 webkit_glue::FilePathToWebString(platform_path), | 184 webkit_glue::FilePathToWebString(platform_path), |
| 185 start_offset, | 185 start_offset, |
| 186 number_of_bytes, | 186 number_of_bytes, |
| 187 expected_last_modified_time); | 187 expected_last_modified_time); |
| 188 return true; | 188 return true; |
| 189 } | 189 } |
| 190 | 190 |
| 191 | 191 |
| 192 } // namespace ppapi | 192 } // namespace ppapi |
| 193 } // namespace webkit | 193 } // namespace webkit |
| OLD | NEW |