OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/pepper/url_request_info_util.h" | 5 #include "content/renderer/pepper/url_request_info_util.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "content/child/request_extra_data.h" | 9 #include "content/child/request_extra_data.h" |
10 #include "content/common/fileapi/file_system_messages.h" | 10 #include "content/common/fileapi/file_system_messages.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 dest->setExtraData(extra_data); | 179 dest->setExtraData(extra_data); |
180 } | 180 } |
181 | 181 |
182 return true; | 182 return true; |
183 } | 183 } |
184 | 184 |
185 bool URLRequestRequiresUniversalAccess(const URLRequestInfoData& data) { | 185 bool URLRequestRequiresUniversalAccess(const URLRequestInfoData& data) { |
186 return data.has_custom_referrer_url || | 186 return data.has_custom_referrer_url || |
187 data.has_custom_content_transfer_encoding || | 187 data.has_custom_content_transfer_encoding || |
188 data.has_custom_user_agent || | 188 data.has_custom_user_agent || |
189 url_util::FindAndCompareScheme(data.url, "javascript", NULL); | 189 url::FindAndCompareScheme(data.url, "javascript", NULL); |
190 } | 190 } |
191 | 191 |
192 } // namespace content | 192 } // namespace content |
OLD | NEW |