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

Side by Side Diff: chrome/browser/android/download/download_manager_service.h

Issue 2061063002: Add UMA for studying download cancellation reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_
6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_ 6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 25 matching lines...) Expand all
36 // |jdownload_guid|.. 36 // |jdownload_guid|..
37 void ResumeDownload(JNIEnv* env, 37 void ResumeDownload(JNIEnv* env,
38 jobject obj, 38 jobject obj,
39 const JavaParamRef<jstring>& jdownload_guid); 39 const JavaParamRef<jstring>& jdownload_guid);
40 40
41 // Called to cancel a download item that has GUID equal to |jdownload_guid|. 41 // Called to cancel a download item that has GUID equal to |jdownload_guid|.
42 // If the DownloadItem is not yet created, retry after a while. 42 // If the DownloadItem is not yet created, retry after a while.
43 void CancelDownload(JNIEnv* env, 43 void CancelDownload(JNIEnv* env,
44 jobject obj, 44 jobject obj,
45 const JavaParamRef<jstring>& jdownload_guid, 45 const JavaParamRef<jstring>& jdownload_guid,
46 bool is_off_the_record); 46 bool is_off_the_record,
47 bool is_notification_dismissed);
47 48
48 // Called to pause a download item that has GUID equal to |jdownload_guid|. 49 // Called to pause a download item that has GUID equal to |jdownload_guid|.
49 // If the DownloadItem is not yet created, do nothing as it is already paused. 50 // If the DownloadItem is not yet created, do nothing as it is already paused.
50 void PauseDownload(JNIEnv* env, 51 void PauseDownload(JNIEnv* env,
51 jobject obj, 52 jobject obj,
52 const JavaParamRef<jstring>& jdownload_guid); 53 const JavaParamRef<jstring>& jdownload_guid);
53 54
54 // DownloadHistory::Observer methods. 55 // DownloadHistory::Observer methods.
55 void OnHistoryQueryComplete() override; 56 void OnHistoryQueryComplete() override;
56 57
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 95
95 void EnqueueDownloadAction(const std::string& download_guid, 96 void EnqueueDownloadAction(const std::string& download_guid,
96 DownloadAction action); 97 DownloadAction action);
97 98
98 ResumeCallback resume_callback_for_testing_; 99 ResumeCallback resume_callback_for_testing_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(DownloadManagerService); 101 DISALLOW_COPY_AND_ASSIGN(DownloadManagerService);
101 }; 102 };
102 103
103 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_ 104 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_MANAGER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698