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

Side by Side Diff: content/public/browser/download_url_parameters.cc

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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/public/browser/download_url_parameters.h" 5 #include "content/public/browser/download_url_parameters.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "content/public/browser/browser_context.h" 8 #include "content/public/browser/browser_context.h"
9 #include "content/public/browser/download_save_info.h" 9 #include "content/public/browser/download_save_info.h"
10 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
11 #include "content/public/browser/render_view_host.h" 11 #include "content/public/browser/render_view_host.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 DownloadUrlParameters::DownloadUrlParameters( 17 DownloadUrlParameters::DownloadUrlParameters(
18 const GURL& url, 18 const GURL& url,
19 int render_process_host_id, 19 int render_process_host_id,
20 int render_view_host_routing_id, 20 int render_view_host_routing_id,
21 ResourceContext* resource_context) 21 ResourceContext* resource_context)
22 : content_initiated_(false), 22 : content_initiated_(false),
23 load_flags_(0),
24 method_("GET"), 23 method_("GET"),
25 post_id_(-1), 24 post_id_(-1),
26 prefer_cache_(false), 25 prefer_cache_(false),
27 render_process_host_id_(render_process_host_id), 26 render_process_host_id_(render_process_host_id),
28 render_view_host_routing_id_(render_view_host_routing_id), 27 render_view_host_routing_id_(render_view_host_routing_id),
29 resource_context_(resource_context), 28 resource_context_(resource_context),
30 url_(url) { 29 url_(url),
30 do_not_prompt_for_login_(false) {
31 } 31 }
32 32
33 DownloadUrlParameters::~DownloadUrlParameters() { 33 DownloadUrlParameters::~DownloadUrlParameters() {
34 } 34 }
35 35
36 // static 36 // static
37 DownloadUrlParameters* DownloadUrlParameters::FromWebContents( 37 DownloadUrlParameters* DownloadUrlParameters::FromWebContents(
38 WebContents* web_contents, 38 WebContents* web_contents,
39 const GURL& url) { 39 const GURL& url) {
40 return new DownloadUrlParameters( 40 return new DownloadUrlParameters(
41 url, 41 url,
42 web_contents->GetRenderProcessHost()->GetID(), 42 web_contents->GetRenderProcessHost()->GetID(),
43 web_contents->GetRenderViewHost()->GetRoutingID(), 43 web_contents->GetRenderViewHost()->GetRoutingID(),
44 web_contents->GetBrowserContext()->GetResourceContext()); 44 web_contents->GetBrowserContext()->GetResourceContext());
45 } 45 }
46 46
47 } // namespace content 47 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/download_url_parameters.h ('k') | content/public/browser/resource_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698