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

Side by Side Diff: content/browser/download/download_request_handle.cc

Issue 1533583002: [Downloads] Factor out request handling logic between DRH and UD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Why aren't there tests for sniffed MIME types? Created 5 years 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/browser/download/download_request_handle.h" 5 #include "content/browser/download/download_request_handle.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "content/browser/frame_host/navigator.h" 10 #include "content/browser/frame_host/navigator.h"
11 #include "content/browser/frame_host/render_frame_host_impl.h" 11 #include "content/browser/frame_host/render_frame_host_impl.h"
12 #include "content/browser/renderer_host/render_view_host_impl.h" 12 #include "content/browser/renderer_host/render_view_host_impl.h"
13 #include "content/browser/web_contents/web_contents_impl.h" 13 #include "content/browser/web_contents/web_contents_impl.h"
14 #include "content/public/browser/browser_context.h" 14 #include "content/public/browser/browser_context.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 #include "content/public/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 DownloadRequestHandle::~DownloadRequestHandle() { 20 DownloadRequestHandleInterface::~DownloadRequestHandleInterface() {}
21 } 21
22 DownloadRequestHandle::~DownloadRequestHandle() {}
22 23
23 DownloadRequestHandle::DownloadRequestHandle() 24 DownloadRequestHandle::DownloadRequestHandle()
24 : child_id_(-1), 25 : child_id_(-1),
25 render_view_id_(-1), 26 render_view_id_(-1),
26 request_id_(-1), 27 request_id_(-1),
27 frame_tree_node_id_(-1) { 28 frame_tree_node_id_(-1) {
28 } 29 }
29 30
30 DownloadRequestHandle::DownloadRequestHandle( 31 DownloadRequestHandle::DownloadRequestHandle(
31 const base::WeakPtr<DownloadResourceHandler>& handler, 32 const base::WeakPtr<DownloadResourceHandler>& handler,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 " child_id = %d" 117 " child_id = %d"
117 " render_view_id = %d" 118 " render_view_id = %d"
118 " request_id = %d" 119 " request_id = %d"
119 "}", 120 "}",
120 child_id_, 121 child_id_,
121 render_view_id_, 122 render_view_id_,
122 request_id_); 123 request_id_);
123 } 124 }
124 125
125 } // namespace content 126 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698