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

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: Rebasing Created 5 years 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 21 matching lines...) Expand all
32 32
33 private: 33 private:
34 AndroidDownloadManagerOverwriteInfoBarDelegate( 34 AndroidDownloadManagerOverwriteInfoBarDelegate(
35 const std::string& file_name, 35 const std::string& file_name,
36 const std::string& dir_name, 36 const std::string& dir_name,
37 const std::string& dir_full_path, 37 const std::string& dir_full_path,
38 jobject chrome_download_delegate, 38 jobject chrome_download_delegate,
39 jobject download_info); 39 jobject download_info);
40 40
41 // DownloadOverwriteInfoBarDelegate: 41 // DownloadOverwriteInfoBarDelegate:
42 std::string GetIdentifier() const override;
42 bool OverwriteExistingFile() override; 43 bool OverwriteExistingFile() override;
43 bool CreateNewFile() override; 44 bool CreateNewFile() override;
44 std::string GetFileName() const override; 45 std::string GetFileName() const override;
45 std::string GetDirName() const override; 46 std::string GetDirName() const override;
46 std::string GetDirFullPath() const override; 47 std::string GetDirFullPath() const override;
47 48
48 std::string file_name_; 49 std::string file_name_;
49 std::string dir_name_; 50 std::string dir_name_;
50 std::string dir_full_path_; 51 std::string dir_full_path_;
51 base::android::ScopedJavaGlobalRef<jobject> chrome_download_delegate_; 52 base::android::ScopedJavaGlobalRef<jobject> chrome_download_delegate_;
52 base::android::ScopedJavaGlobalRef<jobject> download_info_; 53 base::android::ScopedJavaGlobalRef<jobject> download_info_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(AndroidDownloadManagerOverwriteInfoBarDelegate); 55 DISALLOW_COPY_AND_ASSIGN(AndroidDownloadManagerOverwriteInfoBarDelegate);
55 }; 56 };
56 57
57 } // namespace android 58 } // namespace android
58 } // namespace chrome 59 } // namespace chrome
59 60
60 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_ANDROID_DOWNLOAD_MANAGER_OVERWRITE_IN FOBAR_DELEGATE_H_ 61 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_ANDROID_DOWNLOAD_MANAGER_OVERWRITE_IN FOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698