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

Unified Diff: chrome/browser/android/download/download_overwrite_info.cc

Issue 580043002: [Android] Prompt with infobar on filename conflict (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoided Java-only infobar Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/download/download_overwrite_info.cc
diff --git a/chrome/browser/android/download/download_overwrite_info.cc b/chrome/browser/android/download/download_overwrite_info.cc
new file mode 100644
index 0000000000000000000000000000000000000000..50f52397cf16957d149eca79abc9a45b5e79f13b
--- /dev/null
+++ b/chrome/browser/android/download/download_overwrite_info.cc
@@ -0,0 +1,42 @@
+// Copyright (c) 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.
+
+#include "chrome/browser/android/download/download_overwrite_info.h"
+
+namespace chrome {
+namespace android {
+
+DownloadOverwriteInfo::DownloadOverwriteInfo(std::string file_name,
+ std::string dir_name,
+ std::string dir_full_path,
+ std::string url,
+ std::string content_disposition,
+ std::string user_agent,
+ std::string cookie,
+ std::string referer,
+ bool has_user_gesture,
+ std::string mime_type,
+ int64 content_length,
+ bool is_GET_request)
+ : file_name(file_name),
+ dir_name(dir_name),
+ dir_full_path(dir_full_path),
+ url(url),
+ content_disposition(content_disposition),
+ user_agent(user_agent),
+ cookie(cookie),
+ referer(referer),
+ has_user_gesture(has_user_gesture),
+ mime_type(mime_type),
+ content_length(content_length),
+ is_GET_request(is_GET_request),
+ overwrite(false),
+ dismissed(false) {
+}
+
+DownloadOverwriteInfo::~DownloadOverwriteInfo() {
+}
+
+} // namespace android
+} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698