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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 years, 6 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
« no previous file with comments | « content/renderer/npapi/webplugin_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 3231 matching lines...) Expand 10 before | Expand all | Expand 10 after
3242 // don't register this id on the browser side, since the download manager 3242 // don't register this id on the browser side, since the download manager
3243 // expects to find a RenderViewHost based off the id. 3243 // expects to find a RenderViewHost based off the id.
3244 request.setRequestorID(render_view_->GetRoutingID()); 3244 request.setRequestorID(render_view_->GetRoutingID());
3245 request.setHasUserGesture(WebUserGestureIndicator::isProcessingUserGesture()); 3245 request.setHasUserGesture(WebUserGestureIndicator::isProcessingUserGesture());
3246 3246
3247 if (!navigation_state->start_params().extra_headers.empty()) { 3247 if (!navigation_state->start_params().extra_headers.empty()) {
3248 for (net::HttpUtil::HeadersIterator i( 3248 for (net::HttpUtil::HeadersIterator i(
3249 navigation_state->start_params().extra_headers.begin(), 3249 navigation_state->start_params().extra_headers.begin(),
3250 navigation_state->start_params().extra_headers.end(), "\n"); 3250 navigation_state->start_params().extra_headers.end(), "\n");
3251 i.GetNext();) { 3251 i.GetNext();) {
3252 if (LowerCaseEqualsASCII(i.name(), "referer")) { 3252 if (base::LowerCaseEqualsASCII(i.name(), "referer")) {
3253 WebString referrer = WebSecurityPolicy::generateReferrerHeader( 3253 WebString referrer = WebSecurityPolicy::generateReferrerHeader(
3254 blink::WebReferrerPolicyDefault, 3254 blink::WebReferrerPolicyDefault,
3255 request.url(), 3255 request.url(),
3256 WebString::fromUTF8(i.values())); 3256 WebString::fromUTF8(i.values()));
3257 request.setHTTPReferrer(referrer, blink::WebReferrerPolicyDefault); 3257 request.setHTTPReferrer(referrer, blink::WebReferrerPolicyDefault);
3258 } else { 3258 } else {
3259 request.setHTTPHeaderField(WebString::fromUTF8(i.name()), 3259 request.setHTTPHeaderField(WebString::fromUTF8(i.name()),
3260 WebString::fromUTF8(i.values())); 3260 WebString::fromUTF8(i.values()));
3261 } 3261 }
3262 } 3262 }
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after
4953 #elif defined(ENABLE_BROWSER_CDMS) 4953 #elif defined(ENABLE_BROWSER_CDMS)
4954 cdm_manager_, 4954 cdm_manager_,
4955 #endif 4955 #endif
4956 this); 4956 this);
4957 } 4957 }
4958 4958
4959 return cdm_factory_; 4959 return cdm_factory_;
4960 } 4960 }
4961 4961
4962 } // namespace content 4962 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/npapi/webplugin_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698