diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 21:11:34 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 21:11:34 +0000 |
commit | 8ef0637fffc0ad76943be9a6e3bd72b9e5fab07b (patch) | |
tree | 8ac751eacc58518b541b9312b4f9a48528781bd8 /chrome/common/quarantine_mac.h | |
parent | 440a4cc75da5e520fd25c5ef0c0b22823b6ca1b4 (diff) | |
download | chromium_src-8ef0637fffc0ad76943be9a6e3bd72b9e5fab07b.zip chromium_src-8ef0637fffc0ad76943be9a6e3bd72b9e5fab07b.tar.gz chromium_src-8ef0637fffc0ad76943be9a6e3bd72b9e5fab07b.tar.bz2 |
Add quarantine metadata to downloads on the Mac. Patch by Stuart Morgan
<stuart.morgan@gmail.com>.
BUG=10853
Code review URL: http://codereview.chromium.org/99005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14657 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/quarantine_mac.h')
-rw-r--r-- | chrome/common/quarantine_mac.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/common/quarantine_mac.h b/chrome/common/quarantine_mac.h new file mode 100644 index 0000000..2843b7a --- /dev/null +++ b/chrome/common/quarantine_mac.h @@ -0,0 +1,22 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_COMMON_QUARANTINE_MAC_H_ +#define CHROME_COMMON_QUARANTINE_MAC_H_ + +class FilePath; +class GURL; + +namespace quarantine_mac { + +// Adds quarantine metadata to the file, assuming it has already been +// quarantined by the OS. +// |source| should be the source URL for the download, and |referrer| should be +// the URL the user initiated the download from. +void AddQuarantineMetadataToFile(const FilePath& file, const GURL& source, + const GURL& referrer); + +} // namespace quarantine_mac + +#endif // CHROME_COMMON_QUARANTINE_MAC_H_ |