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

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

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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
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 2617 matching lines...) Expand 10 before | Expand all | Expand 10 after
2628 // don't register this id on the browser side, since the download manager 2628 // don't register this id on the browser side, since the download manager
2629 // expects to find a RenderViewHost based off the id. 2629 // expects to find a RenderViewHost based off the id.
2630 request.setRequestorID(render_view_->GetRoutingID()); 2630 request.setRequestorID(render_view_->GetRoutingID());
2631 request.setHasUserGesture(WebUserGestureIndicator::isProcessingUserGesture()); 2631 request.setHasUserGesture(WebUserGestureIndicator::isProcessingUserGesture());
2632 2632
2633 if (!navigation_state->extra_headers().empty()) { 2633 if (!navigation_state->extra_headers().empty()) {
2634 for (net::HttpUtil::HeadersIterator i( 2634 for (net::HttpUtil::HeadersIterator i(
2635 navigation_state->extra_headers().begin(), 2635 navigation_state->extra_headers().begin(),
2636 navigation_state->extra_headers().end(), "\n"); 2636 navigation_state->extra_headers().end(), "\n");
2637 i.GetNext(); ) { 2637 i.GetNext(); ) {
2638 if (base::LowerCaseEqualsASCII(i.name(), "referer")) { 2638 if (LowerCaseEqualsASCII(i.name(), "referer")) {
2639 WebString referrer = WebSecurityPolicy::generateReferrerHeader( 2639 WebString referrer = WebSecurityPolicy::generateReferrerHeader(
2640 blink::WebReferrerPolicyDefault, 2640 blink::WebReferrerPolicyDefault,
2641 request.url(), 2641 request.url(),
2642 WebString::fromUTF8(i.values())); 2642 WebString::fromUTF8(i.values()));
2643 request.setHTTPReferrer(referrer, blink::WebReferrerPolicyDefault); 2643 request.setHTTPReferrer(referrer, blink::WebReferrerPolicyDefault);
2644 } else { 2644 } else {
2645 request.setHTTPHeaderField(WebString::fromUTF8(i.name()), 2645 request.setHTTPHeaderField(WebString::fromUTF8(i.name()),
2646 WebString::fromUTF8(i.values())); 2646 WebString::fromUTF8(i.values()));
2647 } 2647 }
2648 } 2648 }
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
3719 3719
3720 #if defined(ENABLE_BROWSER_CDMS) 3720 #if defined(ENABLE_BROWSER_CDMS)
3721 RendererCdmManager* RenderFrameImpl::GetCdmManager() { 3721 RendererCdmManager* RenderFrameImpl::GetCdmManager() {
3722 if (!cdm_manager_) 3722 if (!cdm_manager_)
3723 cdm_manager_ = new RendererCdmManager(this); 3723 cdm_manager_ = new RendererCdmManager(this);
3724 return cdm_manager_; 3724 return cdm_manager_;
3725 } 3725 }
3726 #endif // defined(ENABLE_BROWSER_CDMS) 3726 #endif // defined(ENABLE_BROWSER_CDMS)
3727 3727
3728 } // namespace content 3728 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/renderer/npapi/webplugin_impl.cc ('k') | trunk/src/content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698