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

Side by Side Diff: content/child/web_url_loader_impl.cc

Issue 1017583002: Set Origin header to "null" for cross origin redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Address more of David's comments Created 5 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 16 matching lines...) Expand all
27 #include "content/child/weburlresponse_extradata_impl.h" 27 #include "content/child/weburlresponse_extradata_impl.h"
28 #include "content/common/resource_messages.h" 28 #include "content/common/resource_messages.h"
29 #include "content/common/resource_request_body.h" 29 #include "content/common/resource_request_body.h"
30 #include "content/common/service_worker/service_worker_types.h" 30 #include "content/common/service_worker/service_worker_types.h"
31 #include "content/public/child/request_peer.h" 31 #include "content/public/child/request_peer.h"
32 #include "content/public/common/content_switches.h" 32 #include "content/public/common/content_switches.h"
33 #include "net/base/data_url.h" 33 #include "net/base/data_url.h"
34 #include "net/base/filename_util.h" 34 #include "net/base/filename_util.h"
35 #include "net/base/mime_util.h" 35 #include "net/base/mime_util.h"
36 #include "net/base/net_errors.h" 36 #include "net/base/net_errors.h"
37 #include "net/http/http_request_headers.h"
37 #include "net/http/http_response_headers.h" 38 #include "net/http/http_response_headers.h"
38 #include "net/http/http_util.h" 39 #include "net/http/http_util.h"
39 #include "net/url_request/redirect_info.h" 40 #include "net/url_request/redirect_info.h"
40 #include "net/url_request/url_request_data_job.h" 41 #include "net/url_request/url_request_data_job.h"
41 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h" 42 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h"
43 #include "third_party/WebKit/public/platform/WebString.h"
davidben 2015/03/27 22:46:51 Nit: I think these can go away now.
jww 2015/03/30 18:50:37 Indeed! Thanks!
42 #include "third_party/WebKit/public/platform/WebURL.h" 44 #include "third_party/WebKit/public/platform/WebURL.h"
43 #include "third_party/WebKit/public/platform/WebURLError.h" 45 #include "third_party/WebKit/public/platform/WebURLError.h"
44 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" 46 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h"
45 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 47 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
46 #include "third_party/WebKit/public/platform/WebURLRequest.h" 48 #include "third_party/WebKit/public/platform/WebURLRequest.h"
47 #include "third_party/WebKit/public/platform/WebURLResponse.h" 49 #include "third_party/WebKit/public/platform/WebURLResponse.h"
48 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" 50 #include "third_party/WebKit/public/web/WebSecurityPolicy.h"
49 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h" 51 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h"
50 52
51 using base::Time; 53 using base::Time;
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 int intra_priority_value) { 1140 int intra_priority_value) {
1139 context_->DidChangePriority(new_priority, intra_priority_value); 1141 context_->DidChangePriority(new_priority, intra_priority_value);
1140 } 1142 }
1141 1143
1142 bool WebURLLoaderImpl::attachThreadedDataReceiver( 1144 bool WebURLLoaderImpl::attachThreadedDataReceiver(
1143 blink::WebThreadedDataReceiver* threaded_data_receiver) { 1145 blink::WebThreadedDataReceiver* threaded_data_receiver) {
1144 return context_->AttachThreadedDataReceiver(threaded_data_receiver); 1146 return context_->AttachThreadedDataReceiver(threaded_data_receiver);
1145 } 1147 }
1146 1148
1147 } // namespace content 1149 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | net/data/url_request_unittest/redirect301-to-https » ('j') | net/url_request/url_request.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698