OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 // Notes from Init() above applies here as well. | 206 // Notes from Init() above applies here as well. |
207 void InternalInit(); | 207 void InternalInit(); |
208 | 208 |
209 void Stop(); | 209 void Stop(); |
210 void CheckFinish(); | 210 void CheckFinish(); |
211 void SaveNextFile(bool process_all_remainder_items); | 211 void SaveNextFile(bool process_all_remainder_items); |
212 void DoSavingProcess(); | 212 void DoSavingProcess(); |
213 | 213 |
214 // Create a file name based on the response from the server. | 214 // Create a file name based on the response from the server. |
215 bool GenerateFilename(const std::string& disposition, | 215 bool GenerateFileName(const std::string& disposition, |
216 const GURL& url, | 216 const GURL& url, |
217 bool need_html_ext, | 217 bool need_html_ext, |
218 FilePath::StringType* generated_name); | 218 FilePath::StringType* generated_name); |
219 | 219 |
220 // Get all savable resource links from current web page, include main | 220 // Get all savable resource links from current web page, include main |
221 // frame and sub-frame. | 221 // frame and sub-frame. |
222 void GetAllSavableResourceLinksForCurrentPage(); | 222 void GetAllSavableResourceLinksForCurrentPage(); |
223 // Get html data by serializing all frames of current page with lists | 223 // Get html data by serializing all frames of current page with lists |
224 // which contain all resource links that have local copy. | 224 // which contain all resource links that have local copy. |
225 void GetSerializedHtmlDataForCurrentPageWithLocalLinks(); | 225 void GetSerializedHtmlDataForCurrentPageWithLocalLinks(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 scoped_refptr<SelectFileDialog> select_file_dialog_; | 317 scoped_refptr<SelectFileDialog> select_file_dialog_; |
318 | 318 |
319 friend class SavePackageTest; | 319 friend class SavePackageTest; |
320 | 320 |
321 ScopedRunnableMethodFactory<SavePackage> method_factory_; | 321 ScopedRunnableMethodFactory<SavePackage> method_factory_; |
322 | 322 |
323 DISALLOW_COPY_AND_ASSIGN(SavePackage); | 323 DISALLOW_COPY_AND_ASSIGN(SavePackage); |
324 }; | 324 }; |
325 | 325 |
326 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 326 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
OLD | NEW |