Index: chrome/android/java/src/org/chromium/chrome/browser/infobar/DownloadOverwriteInfoBarDelegate.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/DownloadOverwriteInfoBarDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/DownloadOverwriteInfoBarDelegate.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..39d0669244f9d78658b1c1294570b0cebbd1b570 |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/DownloadOverwriteInfoBarDelegate.java |
@@ -0,0 +1,28 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.chrome.browser.infobar; |
+ |
+import org.chromium.base.CalledByNative; |
+ |
+/** |
+ * DownloadOverwriteInfoBar JNI methods |
+ */ |
+public class DownloadOverwriteInfoBarDelegate { |
+ private DownloadOverwriteInfoBar mInfoBar; |
+ |
+ private DownloadOverwriteInfoBarDelegate() {} |
+ |
+ @CalledByNative |
+ public static DownloadOverwriteInfoBarDelegate create() { |
+ return new DownloadOverwriteInfoBarDelegate(); |
+ } |
+ |
+ @CalledByNative |
+ private InfoBar showDownloadOverwriteInfoBar( |
+ long nativeInfoBar, String fileName, String dirName, String dirFullPath) { |
+ mInfoBar = new DownloadOverwriteInfoBar(nativeInfoBar, fileName, dirName, dirFullPath); |
+ return mInfoBar; |
+ } |
+} |