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/string_util.h" | 8 #include "base/strings/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" |
11 #include "net/http/http_util.h" | 11 #include "net/http/http_util.h" |
12 #include "ppapi/shared_impl/url_request_info_data.h" | 12 #include "ppapi/shared_impl/url_request_info_data.h" |
13 #include "ppapi/shared_impl/var.h" | 13 #include "ppapi/shared_impl/var.h" |
14 #include "ppapi/thunk/enter.h" | 14 #include "ppapi/thunk/enter.h" |
15 #include "third_party/WebKit/public/platform/WebData.h" | 15 #include "third_party/WebKit/public/platform/WebData.h" |
16 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 16 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
17 #include "third_party/WebKit/public/platform/WebURL.h" | 17 #include "third_party/WebKit/public/platform/WebURL.h" |
18 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 18 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 const ::ppapi::URLRequestInfoData& data) { | 197 const ::ppapi::URLRequestInfoData& data) { |
198 return | 198 return |
199 data.has_custom_referrer_url || | 199 data.has_custom_referrer_url || |
200 data.has_custom_content_transfer_encoding || | 200 data.has_custom_content_transfer_encoding || |
201 data.has_custom_user_agent || | 201 data.has_custom_user_agent || |
202 url_util::FindAndCompareScheme(data.url, "javascript", NULL); | 202 url_util::FindAndCompareScheme(data.url, "javascript", NULL); |
203 } | 203 } |
204 | 204 |
205 } // namespace ppapi | 205 } // namespace ppapi |
206 } // namespace webkit | 206 } // namespace webkit |
OLD | NEW |