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

Unified Diff: content/browser/download/download_state_info.h

Issue 7624031: Treat files downloaded from the address bar as "always safe" (including extensions per discussion... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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: content/browser/download/download_state_info.h
===================================================================
--- content/browser/download/download_state_info.h (revision 98485)
+++ content/browser/download/download_state_info.h (working copy)
@@ -7,6 +7,7 @@
#pragma once
#include "base/file_path.h"
+#include "content/common/page_transition_types.h"
// Contains information relating to the process of determining what to do with
// the download.
@@ -17,6 +18,7 @@
DownloadStateInfo(const FilePath& target,
const FilePath& forced_name,
bool has_user_gesture,
+ PageTransition::Type transition_type,
bool prompt_user_for_save_location,
int uniquifier,
bool dangerous_file,
@@ -39,6 +41,8 @@
// True if the download is the result of user action.
bool has_user_gesture;
+ PageTransition::Type transition_type;
+
// True if we should display the 'save as...' UI and prompt the user
// for the download location.
// False if the UI should be suppressed and the download performed to the
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | content/browser/download/download_state_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698