Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Unified Diff: content/browser/download/base_file_mac.cc

Issue 11238044: Refactor BaseFile methods to return a DownloadInterruptReason instead of a net::Error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove SHFILE_TO_REASON macro Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/base_file_linux.cc ('k') | content/browser/download/base_file_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file_mac.cc
diff --git a/content/browser/download/base_file_mac.cc b/content/browser/download/base_file_mac.cc
new file mode 100644
index 0000000000000000000000000000000000000000..88ad5f0c530ff96035ba6c5548d04205be61c101
--- /dev/null
+++ b/content/browser/download/base_file_mac.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2012 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.
+
+#include "content/browser/download/base_file.h"
+
+#include "content/browser/download/file_metadata_mac.h"
+#include "content/public/browser/browser_thread.h"
+
+void BaseFile::AnnotateWithSourceInformation() {
+ DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
+ DCHECK(!detached_);
+
+ content::AddQuarantineMetadataToFile(full_path_, source_url_, referrer_url_);
+ content::AddOriginMetadataToFile(full_path_, source_url_, referrer_url_);
+}
« no previous file with comments | « content/browser/download/base_file_linux.cc ('k') | content/browser/download/base_file_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698