| 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 <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include "base/logging.h" | 10 #include "base/logging.h" |
| 8 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 9 #include "content/child/request_extra_data.h" | 12 #include "content/child/request_extra_data.h" |
| 10 #include "content/common/fileapi/file_system_messages.h" | 13 #include "content/common/fileapi/file_system_messages.h" |
| 11 #include "content/renderer/pepper/host_globals.h" | 14 #include "content/renderer/pepper/host_globals.h" |
| 12 #include "content/renderer/pepper/pepper_file_ref_renderer_host.h" | 15 #include "content/renderer/pepper/pepper_file_ref_renderer_host.h" |
| 13 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 16 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
| 14 #include "content/renderer/pepper/plugin_module.h" | 17 #include "content/renderer/pepper/plugin_module.h" |
| 15 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" | 18 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
| 16 #include "content/renderer/render_thread_impl.h" | 19 #include "content/renderer/render_thread_impl.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 } | 241 } |
| 239 | 242 |
| 240 bool URLRequestRequiresUniversalAccess(const URLRequestInfoData& data) { | 243 bool URLRequestRequiresUniversalAccess(const URLRequestInfoData& data) { |
| 241 return data.has_custom_referrer_url || | 244 return data.has_custom_referrer_url || |
| 242 data.has_custom_content_transfer_encoding || | 245 data.has_custom_content_transfer_encoding || |
| 243 data.has_custom_user_agent || | 246 data.has_custom_user_agent || |
| 244 url::FindAndCompareScheme(data.url, url::kJavaScriptScheme, NULL); | 247 url::FindAndCompareScheme(data.url, url::kJavaScriptScheme, NULL); |
| 245 } | 248 } |
| 246 | 249 |
| 247 } // namespace content | 250 } // namespace content |
| OLD | NEW |