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

Side by Side Diff: content/public/browser/download_manager_delegate.h

Issue 9809011: GData save package support with MHTML. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add comments and TODOs Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 virtual void RemoveItemsFromPersistentStoreBetween( 102 virtual void RemoveItemsFromPersistentStoreBetween(
103 base::Time remove_begin, 103 base::Time remove_begin,
104 base::Time remove_end) {} 104 base::Time remove_end) {}
105 105
106 // Retrieve the directories to save html pages and downloads to. 106 // Retrieve the directories to save html pages and downloads to.
107 virtual void GetSaveDir(WebContents* web_contents, 107 virtual void GetSaveDir(WebContents* web_contents,
108 FilePath* website_save_dir, 108 FilePath* website_save_dir,
109 FilePath* download_save_dir) {} 109 FilePath* download_save_dir) {}
110 110
111 // Asks the user for the path to save a page. The delegate calls the callback 111 // Asks the user for the path to save a page. The delegate calls the callback
112 // to give the answer. 112 // to give the answer, except on ChromeOS, where the saving is done by
113 // SavePackageFilePickerChromeOS. TODO(achuith): Move ChromeOS save
114 // functionality to SavePackage.
113 virtual void ChooseSavePath(WebContents* web_contents, 115 virtual void ChooseSavePath(WebContents* web_contents,
114 const FilePath& suggested_path, 116 const FilePath& suggested_path,
115 const FilePath::StringType& default_extension, 117 const FilePath::StringType& default_extension,
116 bool can_save_as_complete, 118 bool can_save_as_complete,
117 SaveFilePathPickedCallback callback) {} 119 SaveFilePathPickedCallback callback) {}
118 }; 120 };
119 121
120 } // namespace content 122 } // namespace content
121 123
122 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ 124 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698