OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_MAC_FILE_METADATA_H_ | |
6 #define CHROME_BROWSER_MAC_FILE_METADATA_H_ | |
7 #pragma once | |
8 | |
9 class FilePath; | |
10 class GURL; | |
11 | |
12 namespace file_metadata { | |
13 | |
14 // Adds origin metadata to the file. | |
15 // |source| should be the source URL for the download, and |referrer| should be | |
16 // the URL the user initiated the download from. | |
17 void AddOriginMetadataToFile(const FilePath& file, const GURL& source, | |
18 const GURL& referrer); | |
19 | |
20 // Adds quarantine metadata to the file, assuming it has already been | |
21 // quarantined by the OS. | |
22 // |source| should be the source URL for the download, and |referrer| should be | |
23 // the URL the user initiated the download from. | |
24 void AddQuarantineMetadataToFile(const FilePath& file, const GURL& source, | |
25 const GURL& referrer); | |
26 | |
27 } // namespace file_metadata | |
28 | |
29 #endif // CHROME_BROWSER_MAC_FILE_METADATA_H_ | |
OLD | NEW |