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

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

Issue 189933002: Get rid of allowCookies() usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 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 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge.
6 6
7 #include "content/child/web_url_loader_impl.h" 7 #include "content/child/web_url_loader_impl.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 break; 353 break;
354 } 354 }
355 355
356 if (request.reportUploadProgress()) 356 if (request.reportUploadProgress())
357 load_flags |= net::LOAD_ENABLE_UPLOAD_PROGRESS; 357 load_flags |= net::LOAD_ENABLE_UPLOAD_PROGRESS;
358 if (request.reportLoadTiming()) 358 if (request.reportLoadTiming())
359 load_flags |= net::LOAD_ENABLE_LOAD_TIMING; 359 load_flags |= net::LOAD_ENABLE_LOAD_TIMING;
360 if (request.reportRawHeaders()) 360 if (request.reportRawHeaders())
361 load_flags |= net::LOAD_REPORT_RAW_HEADERS; 361 load_flags |= net::LOAD_REPORT_RAW_HEADERS;
362 362
363 if (!request.allowCookies() || !request.allowStoredCredentials()) { 363 if (!request.allowStoredCredentials()) {
364 load_flags |= net::LOAD_DO_NOT_SAVE_COOKIES; 364 load_flags |= net::LOAD_DO_NOT_SAVE_COOKIES;
365 load_flags |= net::LOAD_DO_NOT_SEND_COOKIES; 365 load_flags |= net::LOAD_DO_NOT_SEND_COOKIES;
366 } 366 }
367 367
368 if (!request.allowStoredCredentials()) 368 if (!request.allowStoredCredentials())
369 load_flags |= net::LOAD_DO_NOT_SEND_AUTH_DATA; 369 load_flags |= net::LOAD_DO_NOT_SEND_AUTH_DATA;
370 370
371 if (request.targetType() == WebURLRequest::TargetIsXHR && 371 if (request.targetType() == WebURLRequest::TargetIsXHR &&
372 (url.has_username() || url.has_password())) { 372 (url.has_username() || url.has_password())) {
373 load_flags |= net::LOAD_DO_NOT_PROMPT_FOR_LOGIN; 373 load_flags |= net::LOAD_DO_NOT_PROMPT_FOR_LOGIN;
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 868
869 void WebURLLoaderImpl::setDefersLoading(bool value) { 869 void WebURLLoaderImpl::setDefersLoading(bool value) {
870 context_->SetDefersLoading(value); 870 context_->SetDefersLoading(value);
871 } 871 }
872 872
873 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) { 873 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) {
874 context_->DidChangePriority(new_priority); 874 context_->DidChangePriority(new_priority);
875 } 875 }
876 876
877 } // namespace content 877 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698