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_FILE_METADATA_MAC_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_FILE_METADATA_MAC_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_FILE_METADATA_MAC_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_FILE_METADATA_MAC_H_ |
7 | 7 |
| 8 class GURL; |
| 9 |
| 10 namespace base { |
8 class FilePath; | 11 class FilePath; |
9 class GURL; | 12 } |
10 | 13 |
11 namespace content { | 14 namespace content { |
12 | 15 |
13 // Adds origin metadata to the file. | 16 // Adds origin metadata to the file. |
14 // |source| should be the source URL for the download, and |referrer| should be | 17 // |source| should be the source URL for the download, and |referrer| should be |
15 // the URL the user initiated the download from. | 18 // the URL the user initiated the download from. |
16 void AddOriginMetadataToFile(const FilePath& file, const GURL& source, | 19 void AddOriginMetadataToFile(const base::FilePath& file, const GURL& source, |
17 const GURL& referrer); | 20 const GURL& referrer); |
18 | 21 |
19 // Adds quarantine metadata to the file, assuming it has already been | 22 // Adds quarantine metadata to the file, assuming it has already been |
20 // quarantined by the OS. | 23 // quarantined by the OS. |
21 // |source| should be the source URL for the download, and |referrer| should be | 24 // |source| should be the source URL for the download, and |referrer| should be |
22 // the URL the user initiated the download from. | 25 // the URL the user initiated the download from. |
23 void AddQuarantineMetadataToFile(const FilePath& file, const GURL& source, | 26 void AddQuarantineMetadataToFile(const base::FilePath& file, const GURL& source, |
24 const GURL& referrer); | 27 const GURL& referrer); |
25 | 28 |
26 } // namespace content | 29 } // namespace content |
27 | 30 |
28 #endif // CONTENT_BROWSER_DOWNLOAD_FILE_METADATA_MAC_H_ | 31 #endif // CONTENT_BROWSER_DOWNLOAD_FILE_METADATA_MAC_H_ |
OLD | NEW |