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 "webkit/plugins/ppapi/url_request_info_util.h" | 5 #include "webkit/plugins/ppapi/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 "net/http/http_util.h" | 9 #include "net/http/http_util.h" |
10 #include "ppapi/shared_impl/url_request_info_data.h" | 10 #include "ppapi/shared_impl/url_request_info_data.h" |
11 #include "ppapi/shared_impl/var.h" | 11 #include "ppapi/shared_impl/var.h" |
12 #include "ppapi/thunk/enter.h" | 12 #include "ppapi/thunk/enter.h" |
13 #include "third_party/WebKit/public/platform/WebData.h" | 13 #include "third_party/WebKit/public/platform/WebData.h" |
14 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 14 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
15 #include "third_party/WebKit/public/platform/WebURL.h" | 15 #include "third_party/WebKit/public/platform/WebURL.h" |
16 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 16 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
17 #include "third_party/WebKit/public/web/WebDocument.h" | 17 #include "third_party/WebKit/public/web/WebDocument.h" |
18 #include "third_party/WebKit/public/web/WebFrame.h" | 18 #include "third_party/WebKit/public/web/WebFrame.h" |
19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
20 #include "url/url_util.h" | 20 #include "url/url_util.h" |
21 #include "webkit/glue/weburlrequest_extradata_impl.h" | 21 #include "webkit/child/weburlrequest_extradata_impl.h" |
22 #include "webkit/plugins/ppapi/common.h" | 22 #include "webkit/plugins/ppapi/common.h" |
23 #include "webkit/plugins/ppapi/plugin_module.h" | 23 #include "webkit/plugins/ppapi/plugin_module.h" |
24 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 24 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
25 #include "webkit/plugins/ppapi/resource_helper.h" | 25 #include "webkit/plugins/ppapi/resource_helper.h" |
26 | 26 |
27 using ppapi::URLRequestInfoData; | 27 using ppapi::URLRequestInfoData; |
28 using ppapi::Resource; | 28 using ppapi::Resource; |
29 using ppapi::thunk::EnterResourceNoLock; | 29 using ppapi::thunk::EnterResourceNoLock; |
30 using ppapi::thunk::PPB_FileRef_API; | 30 using ppapi::thunk::PPB_FileRef_API; |
31 using WebKit::WebData; | 31 using WebKit::WebData; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 const ::ppapi::URLRequestInfoData& data) { | 196 const ::ppapi::URLRequestInfoData& data) { |
197 return | 197 return |
198 data.has_custom_referrer_url || | 198 data.has_custom_referrer_url || |
199 data.has_custom_content_transfer_encoding || | 199 data.has_custom_content_transfer_encoding || |
200 data.has_custom_user_agent || | 200 data.has_custom_user_agent || |
201 url_util::FindAndCompareScheme(data.url, "javascript", NULL); | 201 url_util::FindAndCompareScheme(data.url, "javascript", NULL); |
202 } | 202 } |
203 | 203 |
204 } // namespace ppapi | 204 } // namespace ppapi |
205 } // namespace webkit | 205 } // namespace webkit |
OLD | NEW |