| 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.
|
|
|