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_TYPES_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "url/gurl.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 typedef std::vector<std::pair<int, base::FilePath> > FinalNameList; | 17 typedef std::vector<std::pair<int, base::FilePath> > FinalNameList; |
18 typedef std::vector<int> SaveIDList; | 18 typedef std::vector<int> SaveIDList; |
19 | 19 |
20 // This structure is used to handle and deliver some info | 20 // This structure is used to handle and deliver some info |
21 // when processing each save item job. | 21 // when processing each save item job. |
22 struct SaveFileCreateInfo { | 22 struct SaveFileCreateInfo { |
23 enum SaveFileSource { | 23 enum SaveFileSource { |
24 // This type indicates the source is not set. | 24 // This type indicates the source is not set. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 std::string content_disposition; | 61 std::string content_disposition; |
62 // Total bytes of saved file. | 62 // Total bytes of saved file. |
63 int64 total_bytes; | 63 int64 total_bytes; |
64 // Source type of saved file. | 64 // Source type of saved file. |
65 SaveFileSource save_source; | 65 SaveFileSource save_source; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace content | 68 } // namespace content |
69 | 69 |
70 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_ | 70 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_ |
OLD | NEW |