| 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..8963e768e0127724519955722d399c993f2423c6
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/DownloadOverwriteInfoBarDelegate.java
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2015 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, null, fileName, dirName, dirFullPath);
|
| + return mInfoBar;
|
| + }
|
| +}
|
|
|