From 56f762c6574feac5c7bc6fb3f7c80ca140c73566 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 15 Jul 2011 15:40:45 +0000 Subject: Move dependencies of download\base_file from chrome to content. These are all trivial file moves. BUG=82782 Review URL: http://codereview.chromium.org/7388002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92695 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/file_metadata_mac.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 content/browser/file_metadata_mac.h (limited to 'content/browser/file_metadata_mac.h') diff --git a/content/browser/file_metadata_mac.h b/content/browser/file_metadata_mac.h new file mode 100644 index 0000000..d33c25f --- /dev/null +++ b/content/browser/file_metadata_mac.h @@ -0,0 +1,29 @@ +// Copyright (c) 2011 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 CONTENT_BROWSER_FILE_METADATA_MAC_H_ +#define CONTENT_BROWSER_FILE_METADATA_MAC_H_ +#pragma once + +class FilePath; +class GURL; + +namespace file_metadata { + +// Adds origin metadata to the file. +// |source| should be the source URL for the download, and |referrer| should be +// the URL the user initiated the download from. +void AddOriginMetadataToFile(const FilePath& file, const GURL& source, + const GURL& referrer); + +// 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 file_metadata + +#endif // CONTENT_BROWSER_FILE_METADATA_MAC_H_ -- cgit v1.1