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

Side by Side Diff: ios/chrome/browser/net/image_fetcher.mm

Issue 786423002: Get rid of net::DO_NOT_PROMPT_FOR_LOGIN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete flag from iOS code Created 5 years, 11 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/public/browser/resource_dispatcher_host.h ('k') | net/base/load_flags_list.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #import "ios/chrome/browser/net/image_fetcher.h" 5 #import "ios/chrome/browser/net/image_fetcher.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 ImageFetchedCallback callback, 82 ImageFetchedCallback callback,
83 const std::string& referrer, 83 const std::string& referrer,
84 net::URLRequest::ReferrerPolicy referrer_policy) { 84 net::URLRequest::ReferrerPolicy referrer_policy) {
85 DCHECK(request_context_getter_.get()); 85 DCHECK(request_context_getter_.get());
86 net::URLFetcher* fetcher = net::URLFetcher::Create(url, 86 net::URLFetcher* fetcher = net::URLFetcher::Create(url,
87 net::URLFetcher::GET, 87 net::URLFetcher::GET,
88 this); 88 this);
89 downloads_in_progress_[fetcher] = [callback copy]; 89 downloads_in_progress_[fetcher] = [callback copy];
90 fetcher->SetLoadFlags( 90 fetcher->SetLoadFlags(
91 net::LOAD_DO_NOT_SEND_COOKIES | net::LOAD_DO_NOT_SAVE_COOKIES | 91 net::LOAD_DO_NOT_SEND_COOKIES | net::LOAD_DO_NOT_SAVE_COOKIES |
92 net::LOAD_DO_NOT_SEND_AUTH_DATA | net::LOAD_DO_NOT_PROMPT_FOR_LOGIN); 92 net::LOAD_DO_NOT_SEND_AUTH_DATA);
93 fetcher->SetRequestContext(request_context_getter_.get()); 93 fetcher->SetRequestContext(request_context_getter_.get());
94 fetcher->SetReferrer(referrer); 94 fetcher->SetReferrer(referrer);
95 fetcher->SetReferrerPolicy(referrer_policy); 95 fetcher->SetReferrerPolicy(referrer_policy);
96 fetcher->Start(); 96 fetcher->Start();
97 } 97 }
98 98
99 void ImageFetcher::StartDownload( 99 void ImageFetcher::StartDownload(
100 const GURL& url, ImageFetchedCallback callback) { 100 const GURL& url, ImageFetchedCallback callback) {
101 ImageFetcher::StartDownload( 101 ImageFetcher::StartDownload(
102 url, callback, std::string(), net::URLRequest::NEVER_CLEAR_REFERRER); 102 url, callback, std::string(), net::URLRequest::NEVER_CLEAR_REFERRER);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 NSData* data) { 169 NSData* data) {
170 (callback.get())(url, http_response_code, data); 170 (callback.get())(url, http_response_code, data);
171 } 171 }
172 172
173 void ImageFetcher::SetRequestContextGetter( 173 void ImageFetcher::SetRequestContextGetter(
174 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter) { 174 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter) {
175 request_context_getter_ = request_context_getter; 175 request_context_getter_ = request_context_getter;
176 } 176 }
177 177
178 } // namespace image_fetcher 178 } // namespace image_fetcher
OLDNEW
« no previous file with comments | « content/public/browser/resource_dispatcher_host.h ('k') | net/base/load_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698