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

Side by Side Diff: chrome/browser/download/save_package.h

Issue 3040: Move the Save Page code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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
« no previous file with comments | « chrome/browser/download/save_item.cc ('k') | chrome/browser/download/save_package.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
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 // The SavePackage object manages the process of saving a page as only-html or 5 // The SavePackage object manages the process of saving a page as only-html or
6 // complete-html and providing the information for displaying saving status. 6 // complete-html and providing the information for displaying saving status.
7 // Saving page as only-html means means that we save web page to a single HTML 7 // Saving page as only-html means means that we save web page to a single HTML
8 // file regardless internal sub resources and sub frames. 8 // file regardless internal sub resources and sub frames.
9 // Saving page as complete-html page means we save not only the main html file 9 // Saving page as complete-html page means we save not only the main html file
10 // the user told it to save but also a directory for the auxiliary files such 10 // the user told it to save but also a directory for the auxiliary files such
11 // as all sub-frame html files, image files, css files and js files. 11 // as all sub-frame html files, image files, css files and js files.
12 // 12 //
13 // Each page saving job may include one or multiple files which need to be 13 // Each page saving job may include one or multiple files which need to be
14 // saved. Each file is represented by a SaveItem, and all SaveItems are owned 14 // saved. Each file is represented by a SaveItem, and all SaveItems are owned
15 // by the SavePackage. SaveItems are created when a user initiates a page 15 // by the SavePackage. SaveItems are created when a user initiates a page
16 // saving job, and exist for the duration of one tab's life time. 16 // saving job, and exist for the duration of one tab's life time.
17 17
18 #ifndef CHROME_BROWSER_SAVE_PACKAGE_H__ 18 #ifndef CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H__
19 #define CHROME_BROWSER_SAVE_PACKAGE_H__ 19 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H__
20 20
21 #include <string> 21 #include <string>
22 #include <vector> 22 #include <vector>
23 #include <queue> 23 #include <queue>
24 #include <utility> 24 #include <utility>
25 25
26 #include "base/basictypes.h" 26 #include "base/basictypes.h"
27 #include "base/hash_tables.h" 27 #include "base/hash_tables.h"
28 #include "base/ref_counted.h" 28 #include "base/ref_counted.h"
29 #include "base/time.h" 29 #include "base/time.h"
30 #include "chrome/common/pref_member.h" 30 #include "chrome/common/pref_member.h"
31 #include "chrome/browser/save_item.h" 31 #include "chrome/browser/download/save_item.h"
32 #include "chrome/browser/save_types.h" 32 #include "chrome/browser/download/save_types.h"
33 33
34 class SaveFileManager; 34 class SaveFileManager;
35 class SavePackage; 35 class SavePackage;
36 class DownloadItem; 36 class DownloadItem;
37 class GURL; 37 class GURL;
38 class MessageLoop; 38 class MessageLoop;
39 class PrefService; 39 class PrefService;
40 class Profile; 40 class Profile;
41 class WebContents; 41 class WebContents;
42 class URLRequestContext; 42 class URLRequestContext;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // This map is used to track serial number for specified filename. 299 // This map is used to track serial number for specified filename.
300 FileNameCountMap file_name_count_map_; 300 FileNameCountMap file_name_count_map_;
301 301
302 // Indicates current waiting state when SavePackage try to get something 302 // Indicates current waiting state when SavePackage try to get something
303 // from outside. 303 // from outside.
304 WaitState wait_state_; 304 WaitState wait_state_;
305 305
306 DISALLOW_EVIL_CONSTRUCTORS(SavePackage); 306 DISALLOW_EVIL_CONSTRUCTORS(SavePackage);
307 }; 307 };
308 308
309 #endif // CHROME_BROWSER_SAVE_PACKAGE_H__ 309 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H__
OLDNEW
« no previous file with comments | « chrome/browser/download/save_item.cc ('k') | chrome/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698