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

Side by Side Diff: content/browser/safe_util_win.h

Issue 11340029: Move remaining files in content\browser to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_SAFE_UTIL_WIN_H_ 5 #ifndef CONTENT_COMMON_SAFE_UTIL_WIN_H_
6 #define CONTENT_COMMON_SAFE_UTIL_WIN_H_ 6 #define CONTENT_COMMON_SAFE_UTIL_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 #include <windows.h> 9 #include <windows.h>
10 10
11 class FilePath; 11 class FilePath;
12 class GURL; 12 class GURL;
13 13
14 namespace win_util { 14 namespace content {
15 15
16 // Open or run a downloaded file via the Windows shell, possibly showing first 16 // Open or run a downloaded file via the Windows shell, possibly showing first
17 // a consent dialog if the the file is deemed dangerous. This function is an 17 // a consent dialog if the the file is deemed dangerous. This function is an
18 // enhancement over the OpenItemViaShell() function of win_util.h. 18 // enhancement over the OpenItemViaShell() function of win_util.h.
19 // 19 //
20 // The user consent dialog will be shown or not according to the windows 20 // The user consent dialog will be shown or not according to the windows
21 // execution policy defined in the registry which can be overridden per user. 21 // execution policy defined in the registry which can be overridden per user.
22 // The mechanics of the policy are explained in the Microsoft Knowledge base 22 // The mechanics of the policy are explained in the Microsoft Knowledge base
23 // number 883260: http://support.microsoft.com/kb/883260 23 // number 883260: http://support.microsoft.com/kb/883260
24 // 24 //
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // E_FAIL : Virus infected. 61 // E_FAIL : Virus infected.
62 // INET_E_SECURITY_PROBLEM : The file was blocked due to security policy. 62 // INET_E_SECURITY_PROBLEM : The file was blocked due to security policy.
63 // 63 //
64 // Any other return value indicates an unexpected error during the scan. 64 // Any other return value indicates an unexpected error during the scan.
65 // 65 //
66 // |full_path| : is the path to the downloaded file. This should be the final 66 // |full_path| : is the path to the downloaded file. This should be the final
67 // path of the download. 67 // path of the download.
68 // |source_url|: the source URL for the download. 68 // |source_url|: the source URL for the download.
69 HRESULT ScanAndSaveDownloadedFile(const FilePath& full_path, 69 HRESULT ScanAndSaveDownloadedFile(const FilePath& full_path,
70 const GURL& source_url); 70 const GURL& source_url);
71 } // namespace win_util 71 } // namespace content
72 72
73 #endif // CONTENT_COMMON_SAFE_UTIL_WIN_H_ 73 #endif // CONTENT_COMMON_SAFE_UTIL_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698