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

Unified Diff: chrome/browser/android/download/chrome_download_delegate.h

Issue 580043002: [Android] Prompt with infobar on filename conflict (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: used Java DownloadInfo and fixed nits Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/download/chrome_download_delegate.h
diff --git a/chrome/browser/android/download/chrome_download_delegate.h b/chrome/browser/android/download/chrome_download_delegate.h
index d2674d59d03b610f8895b59d35d6dfea3c04a1ff..0ad93247f5768f9ac9f149c6783ee72e3c232691 100644
--- a/chrome/browser/android/download/chrome_download_delegate.h
+++ b/chrome/browser/android/download/chrome_download_delegate.h
@@ -6,7 +6,18 @@
#define CHROME_BROWSER_ANDROID_DOWNLOAD_CHROME_DOWNLOAD_DELEGATE_H_
#include "base/android/jni_android.h"
+#include "base/android/jni_weak_ref.h"
+#include "base/android/scoped_java_ref.h"
-bool RegisterChromeDownloadDeleagte(JNIEnv* env);
+class ChromeDownloadDelegate {
+ public:
+ static void EnqueueDownloadManagerRequest(
+ JNIEnv* env,
+ JavaObjectWeakGlobalRef chrome_download_delegate,
Ted C 2015/03/03 01:14:44 For passing between functions, I prefer to see eit
Changwan Ryu 2015/03/04 05:15:03 Done.
+ bool overwrite,
+ const base::android::ScopedJavaGlobalRef<jobject>& download_info);
+};
+
+bool RegisterChromeDownloadDelegate(JNIEnv* env);
#endif // CHROME_BROWSER_ANDROID_DOWNLOAD_CHROME_DOWNLOAD_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698