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

Side by Side Diff: chrome/browser/android/download/android_download_manager_overwrite_infobar_delegate.h

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again Created 4 years, 11 months 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_ANDROID_DOWNLOAD_MANAGER_OVERWRITE_INFOB AR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_ANDROID_DOWNLOAD_MANAGER_OVERWRITE_INFOB AR_DELEGATE_H_
6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_ANDROID_DOWNLOAD_MANAGER_OVERWRITE_INFOB AR_DELEGATE_H_ 6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_ANDROID_DOWNLOAD_MANAGER_OVERWRITE_INFOB AR_DELEGATE_H_
7 7
8 #include "base/android/jni_weak_ref.h" 8 #include "base/android/jni_weak_ref.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 22 matching lines...) Expand all
33 33
34 private: 34 private:
35 AndroidDownloadManagerOverwriteInfoBarDelegate( 35 AndroidDownloadManagerOverwriteInfoBarDelegate(
36 const std::string& file_name, 36 const std::string& file_name,
37 const std::string& dir_name, 37 const std::string& dir_name,
38 const std::string& dir_full_path, 38 const std::string& dir_full_path,
39 jobject chrome_download_delegate, 39 jobject chrome_download_delegate,
40 jobject download_info); 40 jobject download_info);
41 41
42 // DownloadOverwriteInfoBarDelegate: 42 // DownloadOverwriteInfoBarDelegate:
43 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
43 bool OverwriteExistingFile() override; 44 bool OverwriteExistingFile() override;
44 bool CreateNewFile() override; 45 bool CreateNewFile() override;
45 std::string GetFileName() const override; 46 std::string GetFileName() const override;
46 std::string GetDirName() const override; 47 std::string GetDirName() const override;
47 std::string GetDirFullPath() const override; 48 std::string GetDirFullPath() const override;
48 49
49 std::string file_name_; 50 std::string file_name_;
50 std::string dir_name_; 51 std::string dir_name_;
51 std::string dir_full_path_; 52 std::string dir_full_path_;
52 base::android::ScopedJavaGlobalRef<jobject> chrome_download_delegate_; 53 base::android::ScopedJavaGlobalRef<jobject> chrome_download_delegate_;
53 base::android::ScopedJavaGlobalRef<jobject> download_info_; 54 base::android::ScopedJavaGlobalRef<jobject> download_info_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(AndroidDownloadManagerOverwriteInfoBarDelegate); 56 DISALLOW_COPY_AND_ASSIGN(AndroidDownloadManagerOverwriteInfoBarDelegate);
56 }; 57 };
57 58
58 } // namespace android 59 } // namespace android
59 } // namespace chrome 60 } // namespace chrome
60 61
61 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_ANDROID_DOWNLOAD_MANAGER_OVERWRITE_IN FOBAR_DELEGATE_H_ 62 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_ANDROID_DOWNLOAD_MANAGER_OVERWRITE_IN FOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698