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

Unified Diff: chrome/browser/file_select_helper.h

Issue 1410423003: [SafeBrowsing] Conditionalize unverified download blocking on whitelist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flash-download-block
Patch Set: Created 5 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 | « no previous file | chrome/browser/file_select_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/file_select_helper.h
diff --git a/chrome/browser/file_select_helper.h b/chrome/browser/file_select_helper.h
index f3f1266b437efd657dbb5c640c7e4b9ede214def..3449a3d76cb23d5b34315958fa266a5e85bf1bda 100644
--- a/chrome/browser/file_select_helper.h
+++ b/chrome/browser/file_select_helper.h
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
+#include "base/memory/scoped_ptr.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_observer.h"
@@ -17,6 +18,10 @@
#include "net/base/directory_lister.h"
#include "ui/shell_dialogs/select_file_dialog.h"
+#if defined(FULL_SAFE_BROWSING)
+#include "chrome/browser/safe_browsing/unverified_download_policy.h"
+#endif
+
class Profile;
namespace content {
@@ -78,11 +83,18 @@ class FileSelectHelper : public base::RefCountedThreadSafe<FileSelectHelper>,
void RunFileChooser(content::RenderViewHost* render_view_host,
content::WebContents* web_contents,
- const content::FileChooserParams& params);
- void RunFileChooserOnFileThread(
- const content::FileChooserParams& params);
- void RunFileChooserOnUIThread(
- const content::FileChooserParams& params);
+ scoped_ptr<content::FileChooserParams> params);
+ void GetFileTypesOnFileThread(scoped_ptr<content::FileChooserParams> params);
+ void GetSanitizedFilenameOnUIThread(
+ scoped_ptr<content::FileChooserParams> params);
+#if defined(FULL_SAFE_BROWSING)
+ void ApplyUnverifiedDownloadPolicy(
+ const base::FilePath& default_path,
+ scoped_ptr<content::FileChooserParams> params,
+ safe_browsing::UnverifiedDownloadPolicy policy);
+#endif
+ void RunFileChooserOnUIThread(const base::FilePath& default_path,
+ scoped_ptr<content::FileChooserParams> params);
// Cleans up and releases this instance. This must be called after the last
// callback is received from the file chooser dialog.
« no previous file with comments | « no previous file | chrome/browser/file_select_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698