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

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

Issue 2123023002: [Downloads] Consolidate MOTW annotation APIs into a single API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-safe-util-to-downloads
Patch Set: [win] Verify that the Zone.Identifier stream has the correct contents. Created 4 years, 3 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
Index: content/browser/download/quarantine.cc
diff --git a/content/public/common/zygote_handle.h b/content/browser/download/quarantine.cc
similarity index 32%
copy from content/public/common/zygote_handle.h
copy to content/browser/download/quarantine.cc
index 9aa07c4245450e9ed6bba2f0c82aaf9a9d3937bb..06a1ca5e789f892143789f176a569bbd09f0668e 100644
--- a/content/public/common/zygote_handle.h
+++ b/content/browser/download/quarantine.cc
@@ -2,22 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_PUBLIC_COMMON_ZYGOTE_HANDLE_H_
-#define CONTENT_PUBLIC_COMMON_ZYGOTE_HANDLE_H_
-
-#include <cstddef>
+#include "content/browser/download/quarantine.h"
#include "build/build_config.h"
+#if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_LINUX)
+
namespace content {
-#if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
-class ZygoteCommunication;
-using ZygoteHandle = ZygoteCommunication*;
-#else
-using ZygoteHandle = std::nullptr_t;
-#endif
+QuarantineFileResult QuarantineFile(const base::FilePath& file,
+ const GURL& source_url,
+ const GURL& referrer_url,
+ const std::string& client_guid) {
+ return QuarantineFileResult::OK;
+}
-} // namespace content
+} // namespace content
-#endif // CONTENT_PUBLIC_COMMON_ZYGOTE_HANDLE_H_
+#endif // !WIN && !MAC && !LINUX

Powered by Google App Engine
This is Rietveld 408576698