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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 dest->setExtraData(extra_data); | 234 dest->setExtraData(extra_data); |
235 } | 235 } |
236 | 236 |
237 return true; | 237 return true; |
238 } | 238 } |
239 | 239 |
240 bool URLRequestRequiresUniversalAccess(const URLRequestInfoData& data) { | 240 bool URLRequestRequiresUniversalAccess(const URLRequestInfoData& data) { |
241 return data.has_custom_referrer_url || | 241 return data.has_custom_referrer_url || |
242 data.has_custom_content_transfer_encoding || | 242 data.has_custom_content_transfer_encoding || |
243 data.has_custom_user_agent || | 243 data.has_custom_user_agent || |
244 url::FindAndCompareScheme(data.url, "javascript", NULL); | 244 url::FindAndCompareScheme(data.url, url::kJavaScriptScheme, NULL); |
245 } | 245 } |
246 | 246 |
247 } // namespace content | 247 } // namespace content |
OLD | NEW |