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

Side by Side Diff: content/public/common/quarantine.h

Issue 2618083002: Disable Quarantine tests on platforms its not supported. (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_QUARANTINE_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_QUARANTINE_H_
6 #define CONTENT_PUBLIC_COMMON_QUARANTINE_H_ 6 #define CONTENT_PUBLIC_COMMON_QUARANTINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // If both |source_url| and |referrer_url|, then the funciton returns true if 94 // If both |source_url| and |referrer_url|, then the funciton returns true if
95 // any quarantine metadata is present for the file. 95 // any quarantine metadata is present for the file.
96 // 96 //
97 // **Note**: On Windows, this function only checks if the |ZoneIdentifier| 97 // **Note**: On Windows, this function only checks if the |ZoneIdentifier|
98 // metadata is present. |source_url| and |referrer_url| are ignored. Windows 98 // metadata is present. |source_url| and |referrer_url| are ignored. Windows
99 // currently doesn't store individual URLs as part of the mark-of-the-web. 99 // currently doesn't store individual URLs as part of the mark-of-the-web.
100 CONTENT_EXPORT bool IsFileQuarantined(const base::FilePath& file, 100 CONTENT_EXPORT bool IsFileQuarantined(const base::FilePath& file,
101 const GURL& source_url, 101 const GURL& source_url,
102 const GURL& referrer_url); 102 const GURL& referrer_url);
103 103
104 // Determine if quarantining is supported. For exapmle, quarantining would not
105 // be supported on a linux system that disabled extended attributes or that uses
106 // tmpfs.
107 //
108 // Only to be used in tests.
109 CONTENT_EXPORT bool IsQuarantineSupportedForTesting();
110
104 } // namespace content 111 } // namespace content
105 112
106 #endif // CONTENT_PUBLIC_COMMON_QUARANTINE_H_ 113 #endif // CONTENT_PUBLIC_COMMON_QUARANTINE_H_
OLDNEW
« content/common/quarantine/quarantine_linux.cc ('K') | « content/common/quarantine/quarantine_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698