OLD | NEW |
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 // Objects that handle file operations for saving files, on the file thread. | 5 // Objects that handle file operations for saving files, on the file thread. |
6 // | 6 // |
7 // The SaveFileManager owns a set of SaveFile objects, each of which connects | 7 // The SaveFileManager owns a set of SaveFile objects, each of which connects |
8 // with a SaveItem object which belongs to one SavePackage and runs on the file | 8 // with a SaveItem object which belongs to one SavePackage and runs on the file |
9 // thread for saving data in order to avoid disk activity on either network IO | 9 // thread for saving data in order to avoid disk activity on either network IO |
10 // thread or the UI thread. It coordinates the notifications from the network | 10 // thread or the UI thread. It coordinates the notifications from the network |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // the saving job was initiated. In the event of a contents closure during | 54 // the saving job was initiated. In the event of a contents closure during |
55 // saving, the SavePackage will notify the SaveFileManage to cancel all SaveFile | 55 // saving, the SavePackage will notify the SaveFileManage to cancel all SaveFile |
56 // jobs. | 56 // jobs. |
57 | 57 |
58 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_MANAGER_H_ | 58 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_MANAGER_H_ |
59 #define CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_MANAGER_H_ | 59 #define CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_MANAGER_H_ |
60 | 60 |
61 #include <string> | 61 #include <string> |
62 | 62 |
63 #include "base/basictypes.h" | 63 #include "base/basictypes.h" |
64 #include "base/hash_tables.h" | 64 #include "base/containers/hash_tables.h" |
65 #include "base/memory/ref_counted.h" | 65 #include "base/memory/ref_counted.h" |
66 #include "content/browser/download/save_types.h" | 66 #include "content/browser/download/save_types.h" |
67 #include "content/common/content_export.h" | 67 #include "content/common/content_export.h" |
68 | 68 |
69 class GURL; | 69 class GURL; |
70 | 70 |
71 namespace base { | 71 namespace base { |
72 class FilePath; | 72 class FilePath; |
73 } | 73 } |
74 | 74 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 typedef base::hash_map<int, StartingRequestsMap> | 243 typedef base::hash_map<int, StartingRequestsMap> |
244 ContentsToStartingRequestsMap; | 244 ContentsToStartingRequestsMap; |
245 ContentsToStartingRequestsMap contents_starting_requests_; | 245 ContentsToStartingRequestsMap contents_starting_requests_; |
246 | 246 |
247 DISALLOW_COPY_AND_ASSIGN(SaveFileManager); | 247 DISALLOW_COPY_AND_ASSIGN(SaveFileManager); |
248 }; | 248 }; |
249 | 249 |
250 } // namespace content | 250 } // namespace content |
251 | 251 |
252 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_MANAGER_H_ | 252 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_MANAGER_H_ |
OLD | NEW |