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

Side by Side Diff: chrome/browser/ui/android/infobars/download_overwrite_infobar.h

Issue 2478583004: implementation for new duplicate download UI (Closed)
Patch Set: do null check on webcontents Created 4 years, 1 month 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
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_
7
8 #include "base/android/scoped_java_ref.h"
9 #include "base/macros.h"
10 #include "chrome/browser/ui/android/infobars/infobar_android.h"
11
12 namespace chrome {
13 namespace android {
14 class DownloadOverwriteInfoBarDelegate;
15 }
16 }
17
18 // A native-side implementation of an infobar to ask whether to overwrite
19 // an existing file with a new download.
20 class DownloadOverwriteInfoBar : public InfoBarAndroid {
21 public:
22 static std::unique_ptr<infobars::InfoBar> CreateInfoBar(
23 std::unique_ptr<chrome::android::DownloadOverwriteInfoBarDelegate>
24 delegate);
25 ~DownloadOverwriteInfoBar() override;
26
27 private:
28 explicit DownloadOverwriteInfoBar(
29 std::unique_ptr<chrome::android::DownloadOverwriteInfoBarDelegate>
30 delegate);
31
32 // InfoBarAndroid:
33 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
34 JNIEnv* env) override;
35 void ProcessButton(int action) override;
36
37 chrome::android::DownloadOverwriteInfoBarDelegate* GetDelegate();
38
39 DISALLOW_COPY_AND_ASSIGN(DownloadOverwriteInfoBar);
40 };
41
42 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/android/infobars/download_overwrite_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698