Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: content/renderer/pepper/url_request_info_util.cc

Issue 384793003: PPAPI: Remove content/renderer/pepper/common.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/pepper/resource_creation_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "content/renderer/pepper/common.h"
12 #include "content/renderer/pepper/host_globals.h" 11 #include "content/renderer/pepper/host_globals.h"
13 #include "content/renderer/pepper/pepper_file_ref_renderer_host.h" 12 #include "content/renderer/pepper/pepper_file_ref_renderer_host.h"
14 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 13 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
15 #include "content/renderer/pepper/plugin_module.h" 14 #include "content/renderer/pepper/plugin_module.h"
16 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" 15 #include "content/renderer/pepper/renderer_ppapi_host_impl.h"
17 #include "content/renderer/render_thread_impl.h" 16 #include "content/renderer/render_thread_impl.h"
18 #include "net/http/http_util.h" 17 #include "net/http/http_util.h"
18 #include "ppapi/c/pp_bool.h"
19 #include "ppapi/c/pp_var.h"
19 #include "ppapi/proxy/ppapi_messages.h" 20 #include "ppapi/proxy/ppapi_messages.h"
20 #include "ppapi/shared_impl/url_request_info_data.h" 21 #include "ppapi/shared_impl/url_request_info_data.h"
21 #include "ppapi/shared_impl/var.h" 22 #include "ppapi/shared_impl/var.h"
22 #include "ppapi/thunk/enter.h" 23 #include "ppapi/thunk/enter.h"
23 #include "third_party/WebKit/public/platform/WebData.h" 24 #include "third_party/WebKit/public/platform/WebData.h"
24 #include "third_party/WebKit/public/platform/WebHTTPBody.h" 25 #include "third_party/WebKit/public/platform/WebHTTPBody.h"
25 #include "third_party/WebKit/public/platform/WebURL.h" 26 #include "third_party/WebKit/public/platform/WebURL.h"
26 #include "third_party/WebKit/public/platform/WebURLRequest.h" 27 #include "third_party/WebKit/public/platform/WebURLRequest.h"
27 #include "third_party/WebKit/public/web/WebDocument.h" 28 #include "third_party/WebKit/public/web/WebDocument.h"
28 #include "third_party/WebKit/public/web/WebFrame.h" 29 #include "third_party/WebKit/public/web/WebFrame.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 184 }
184 185
185 bool URLRequestRequiresUniversalAccess(const URLRequestInfoData& data) { 186 bool URLRequestRequiresUniversalAccess(const URLRequestInfoData& data) {
186 return data.has_custom_referrer_url || 187 return data.has_custom_referrer_url ||
187 data.has_custom_content_transfer_encoding || 188 data.has_custom_content_transfer_encoding ||
188 data.has_custom_user_agent || 189 data.has_custom_user_agent ||
189 url::FindAndCompareScheme(data.url, "javascript", NULL); 190 url::FindAndCompareScheme(data.url, "javascript", NULL);
190 } 191 }
191 192
192 } // namespace content 193 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/resource_creation_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698