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

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

Issue 598453004: Replace some hard coded schemes with the constants in /url/url_constants.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address the comment. Created 6 years, 2 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
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"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698