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 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // Notes from Init() above applies here as well. | 140 // Notes from Init() above applies here as well. |
141 void InternalInit(); | 141 void InternalInit(); |
142 | 142 |
143 void Stop(); | 143 void Stop(); |
144 void CheckFinish(); | 144 void CheckFinish(); |
145 void SaveNextFile(bool process_all_remainder_items); | 145 void SaveNextFile(bool process_all_remainder_items); |
146 void DoSavingProcess(); | 146 void DoSavingProcess(); |
147 | 147 |
148 // WebContentsObserver implementation. | 148 // WebContentsObserver implementation. |
149 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 149 virtual bool OnMessageReceived(const IPC::Message& message) override; |
150 | 150 |
151 // DownloadItem::Observer implementation. | 151 // DownloadItem::Observer implementation. |
152 virtual void OnDownloadDestroyed(DownloadItem* download) OVERRIDE; | 152 virtual void OnDownloadDestroyed(DownloadItem* download) override; |
153 | 153 |
154 // Update the download history of this item upon completion. | 154 // Update the download history of this item upon completion. |
155 void FinalizeDownloadEntry(); | 155 void FinalizeDownloadEntry(); |
156 | 156 |
157 // Detach from DownloadManager. | 157 // Detach from DownloadManager. |
158 void StopObservation(); | 158 void StopObservation(); |
159 | 159 |
160 // Return max length of a path for a specific base directory. | 160 // Return max length of a path for a specific base directory. |
161 // This is needed on POSIX, which restrict the length of file names in | 161 // This is needed on POSIX, which restrict the length of file names in |
162 // addition to the restriction on the length of path names. | 162 // addition to the restriction on the length of path names. |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 friend class SavePackageTest; | 330 friend class SavePackageTest; |
331 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); | 331 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); |
332 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename); | 332 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename); |
333 | 333 |
334 DISALLOW_COPY_AND_ASSIGN(SavePackage); | 334 DISALLOW_COPY_AND_ASSIGN(SavePackage); |
335 }; | 335 }; |
336 | 336 |
337 } // namespace content | 337 } // namespace content |
338 | 338 |
339 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 339 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
OLD | NEW |