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

Unified Diff: content/browser/safe_util_win.h

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/safe_util_win.h
diff --git a/content/browser/safe_util_win.h b/content/browser/safe_util_win.h
deleted file mode 100644
index ce044c79a94921b0cec3e38800a67c2f52682a53..0000000000000000000000000000000000000000
--- a/content/browser/safe_util_win.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// 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.
-
-#ifndef CONTENT_BROWSER_SAFE_UTIL_WIN_H_
-#define CONTENT_BROWSER_SAFE_UTIL_WIN_H_
-
-#include <string>
-#include <windows.h>
-
-class GURL;
-
-namespace base {
-class FilePath;
-}
-
-namespace content {
-
-// Invokes IAttachmentExecute::Save to validate the downloaded file. The call
-// may scan the file for viruses and if necessary, annotate it with evidence. As
-// a result of the validation, the file may be deleted. See:
-// http://msdn.microsoft.com/en-us/bb776299
-//
-// If Attachment Execution Services is unavailable, then this function will
-// attempt to manually annotate the file with security zone information. A
-// failure code will be returned in this case even if the file is successfully
-// annotated.
-//
-// IAE::Save() will delete the file if it was found to be blocked by local
-// security policy or if it was found to be infected. The call may also delete
-// the file due to other failures (http://crbug.com/153212). A failure code will
-// be returned in these cases.
-//
-// Typical return values:
-// S_OK : The file was okay. If any viruses were found, they were cleaned.
-// E_FAIL : Virus infected.
-// INET_E_SECURITY_PROBLEM : The file was blocked due to security policy.
-//
-// Any other return value indicates an unexpected error during the scan.
-//
-// |full_path| : is the path to the downloaded file. This should be the final
-// path of the download. Must be present.
-// |source_url|: the source URL for the download. If empty, the source will
-// not be set.
-// |client_guid|: the GUID to be set in the IAttachmentExecute client slot.
-// Used to identify the app to the system AV function.
-// If GUID_NULL is passed, no client GUID is set.
-HRESULT AVScanFile(const base::FilePath& full_path,
- const std::string& source_url,
- const GUID& client_guid);
-} // namespace content
-
-#endif // CONTENT_BROWSER_SAFE_UTIL_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698