Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / android / download / chrome_download_delegate.h
blob1ad717c45da315fa9cc5828076ac4c8cdba1d1cf
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_CHROME_DOWNLOAD_DELEGATE_H_
6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_CHROME_DOWNLOAD_DELEGATE_H_
8 #include "base/android/jni_android.h"
9 #include "base/android/jni_weak_ref.h"
10 #include "base/android/scoped_java_ref.h"
12 class ChromeDownloadDelegate {
13 public:
14 // Returns true iff this request resulted in the tab creating the download
15 // to close.
16 static bool EnqueueDownloadManagerRequest(jobject chrome_download_delegate,
17 bool overwrite,
18 jobject download_info);
21 bool RegisterChromeDownloadDelegate(JNIEnv* env);
23 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_CHROME_DOWNLOAD_DELEGATE_H_