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

Side by Side Diff: chrome/browser/android/download/download_controller.cc

Issue 2886403005: Remove chrome_download_delegate.cc (Closed)
Patch Set: Created 3 years, 7 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 | « chrome/browser/android/download/chrome_download_delegate.cc ('k') | 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/android/download/download_controller.h" 5 #include "chrome/browser/android/download/download_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/metrics/histogram_macros.h" 15 #include "base/metrics/histogram_macros.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "chrome/browser/android/download/chrome_download_delegate.h"
18 #include "chrome/browser/android/download/dangerous_download_infobar_delegate.h" 17 #include "chrome/browser/android/download/dangerous_download_infobar_delegate.h"
19 #include "chrome/browser/android/download/download_manager_service.h" 18 #include "chrome/browser/android/download/download_manager_service.h"
20 #include "chrome/browser/android/tab_android.h" 19 #include "chrome/browser/android/tab_android.h"
21 #include "chrome/browser/infobars/infobar_service.h" 20 #include "chrome/browser/infobars/infobar_service.h"
22 #include "chrome/browser/permissions/permission_update_infobar_delegate_android. h" 21 #include "chrome/browser/permissions/permission_update_infobar_delegate_android. h"
23 #include "chrome/browser/ui/android/view_android_helper.h" 22 #include "chrome/browser/ui/android/view_android_helper.h"
24 #include "chrome/grit/chromium_strings.h" 23 #include "chrome/grit/chromium_strings.h"
25 #include "content/public/browser/browser_context.h" 24 #include "content/public/browser/browser_context.h"
26 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
27 #include "content/public/browser/download_manager.h" 26 #include "content/public/browser/download_manager.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 int routing_id = web_contents->GetRenderViewHost()->GetRoutingID(); 408 int routing_id = web_contents->GetRenderViewHost()->GetRoutingID();
410 409
411 const content::ResourceRequestInfo::WebContentsGetter& wc_getter( 410 const content::ResourceRequestInfo::WebContentsGetter& wc_getter(
412 base::Bind(&GetWebContents, process_id, routing_id)); 411 base::Bind(&GetWebContents, process_id, routing_id));
413 412
414 AcquireFileAccessPermission( 413 AcquireFileAccessPermission(
415 wc_getter, base::Bind(&CreateContextMenuDownload, wc_getter, params, 414 wc_getter, base::Bind(&CreateContextMenuDownload, wc_getter, params,
416 is_link, extra_headers)); 415 is_link, extra_headers));
417 } 416 }
418 417
OLDNEW
« no previous file with comments | « chrome/browser/android/download/chrome_download_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698