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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/infobars/download_overwrite_infobar.h
diff --git a/chrome/browser/ui/android/infobars/download_overwrite_infobar.h b/chrome/browser/ui/android/infobars/download_overwrite_infobar.h
deleted file mode 100644
index 5077b0b20e2f955b3a0162dce0efbc37cada6f65..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/android/infobars/download_overwrite_infobar.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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.
-
-#ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_
-#define CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_
-
-#include "base/android/scoped_java_ref.h"
-#include "base/macros.h"
-#include "chrome/browser/ui/android/infobars/infobar_android.h"
-
-namespace chrome {
-namespace android {
-class DownloadOverwriteInfoBarDelegate;
-}
-}
-
-// A native-side implementation of an infobar to ask whether to overwrite
-// an existing file with a new download.
-class DownloadOverwriteInfoBar : public InfoBarAndroid {
- public:
- static std::unique_ptr<infobars::InfoBar> CreateInfoBar(
- std::unique_ptr<chrome::android::DownloadOverwriteInfoBarDelegate>
- delegate);
- ~DownloadOverwriteInfoBar() override;
-
- private:
- explicit DownloadOverwriteInfoBar(
- std::unique_ptr<chrome::android::DownloadOverwriteInfoBarDelegate>
- delegate);
-
- // InfoBarAndroid:
- base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
- JNIEnv* env) override;
- void ProcessButton(int action) override;
-
- chrome::android::DownloadOverwriteInfoBarDelegate* GetDelegate();
-
- DISALLOW_COPY_AND_ASSIGN(DownloadOverwriteInfoBar);
-};
-
-#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_
« 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