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

Unified Diff: chrome/browser/download/save_package_file_picker_chromeos.h

Issue 10069014: Save Page As MHTML (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 8 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/download/save_package_file_picker_chromeos.h
diff --git a/chrome/browser/download/save_package_file_picker_chromeos.h b/chrome/browser/download/save_package_file_picker_chromeos.h
index b10b7fe7940cd05dffef063552a4abf00a49459b..9d9db2484b8928845f8fab03788613f52a407919 100644
--- a/chrome/browser/download/save_package_file_picker_chromeos.h
+++ b/chrome/browser/download/save_package_file_picker_chromeos.h
@@ -6,9 +6,9 @@
#define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_FILE_PICKER_CHROMEOS_H_
#pragma once
-#include "base/platform_file.h"
#include "base/memory/ref_counted.h"
#include "chrome/browser/ui/select_file_dialog.h"
+#include "content/public/browser/download_manager_delegate.h"
#include "content/public/browser/web_contents_observer.h"
namespace gdata {
@@ -20,29 +20,25 @@ class GDataFileSystem;
class SavePackageFilePickerChromeOS : public SelectFileDialog::Listener,
public content::WebContentsObserver {
public:
- SavePackageFilePickerChromeOS(content::WebContents* web_contents,
- const FilePath& suggested_path);
+ SavePackageFilePickerChromeOS(
+ content::WebContents* web_contents,
+ const FilePath& suggested_path,
+ const content::SavePackagePathPickedCallback& callback);
+
+ // Used to disable prompting the user for a directory/filename of the saved
+ // web page. This is available for testing.
+ static void SetShouldPromptUser(bool should_prompt);
private:
virtual ~SavePackageFilePickerChromeOS();
// SelectFileDialog::Listener implementation.
virtual void FileSelected(const FilePath& path,
- int index,
- void* params) OVERRIDE;
+ int unused_index,
+ void* unused_params) OVERRIDE;
virtual void FileSelectionCanceled(void* params) OVERRIDE;
- // Calls WebContent::GenerateMHTML.
- void GenerateMHTML(const FilePath* mhtml_path);
-
- // Callback for WebContents::GenerateMHTML.
- void OnMHTMLGenerated(const FilePath& file_path, int64 file_size);
-
- // GDataFileSystem::TransferFile callback.
- void OnTransferFile(base::PlatformFileError error);
-
- // Use web_contents() to get at GDataFileSystem.
- gdata::GDataFileSystem* GetGDataFileSystem();
+ content::SavePackagePathPickedCallback callback_;
// For managing select file dialogs.
scoped_refptr<SelectFileDialog> select_file_dialog_;
« no previous file with comments | « chrome/browser/download/save_package_file_picker.cc ('k') | chrome/browser/download/save_package_file_picker_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698