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

Unified Diff: content/common/quarantine/quarantine.cc

Issue 2124373002: [PPAPI] Quarantine files that are writeable by a Pepper plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@consolidate-file-metadata
Patch Set: Address comments. Created 4 years 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/common/BUILD.gn ('k') | content/common/quarantine/quarantine_constants_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/quarantine/quarantine.cc
diff --git a/content/browser/download/quarantine.cc b/content/common/quarantine/quarantine.cc
similarity index 68%
rename from content/browser/download/quarantine.cc
rename to content/common/quarantine/quarantine.cc
index 06a1ca5e789f892143789f176a569bbd09f0668e..4ac69516d2374bf3e52a37d7874e6f61debe53d1 100644
--- a/content/browser/download/quarantine.cc
+++ b/content/common/quarantine/quarantine.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/download/quarantine.h"
+#include "content/public/common/quarantine.h"
#include "build/build_config.h"
@@ -17,6 +17,12 @@ QuarantineFileResult QuarantineFile(const base::FilePath& file,
return QuarantineFileResult::OK;
}
-} // namespace content
+bool IsFileQuarantined(const base::FilePath& file,
+ const GURL& source_url,
+ const GURL& referrer_url) {
+ return false;
+}
+
+} // namespace content
-#endif // !WIN && !MAC && !LINUX
+#endif // !WIN && !MAC && !LINUX
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/quarantine/quarantine_constants_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698