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

Side by Side Diff: chrome/common/win_safe_util.h

Issue 590001: Respect the SaveZoneInformation policy when marking downloaded files as unsaf... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/download/save_file.cc ('k') | chrome/common/win_safe_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_WIN_SAFE_UTIL_H__ 5 #ifndef CHROME_COMMON_WIN_SAFE_UTIL_H__
6 #define CHROME_COMMON_WIN_SAFE_UTIL_H__ 6 #define CHROME_COMMON_WIN_SAFE_UTIL_H__
7 7
8 #include <string> 8 #include <string>
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 26 matching lines...) Expand all
37 // dialog. 37 // dialog.
38 // Returns 'true' on successful open, 'false' otherwise. 38 // Returns 'true' on successful open, 'false' otherwise.
39 bool SaferOpenItemViaShell(HWND hwnd, const std::wstring& window_title, 39 bool SaferOpenItemViaShell(HWND hwnd, const std::wstring& window_title,
40 const FilePath& full_path, 40 const FilePath& full_path,
41 const std::wstring& source_url); 41 const std::wstring& source_url);
42 42
43 // Sets the Zone Identifier on the file to "Internet" (3). Returns true if the 43 // Sets the Zone Identifier on the file to "Internet" (3). Returns true if the
44 // function succeeds, false otherwise. A failure is expected on system where 44 // function succeeds, false otherwise. A failure is expected on system where
45 // the Zone Identifier is not supported, like a machine with a FAT32 filesystem. 45 // the Zone Identifier is not supported, like a machine with a FAT32 filesystem.
46 // It should not be considered fatal. 46 // It should not be considered fatal.
47 bool SetInternetZoneIdentifier(const FilePath& full_path); 47 bool SetInternetZoneIdentifier(const FilePath& full_path,
48 const std::wstring& source_url);
48 49
49 } // namespace win_util 50 } // namespace win_util
50 51
51 #endif // CHROME_COMMON_WIN_SAFE_UTIL_H_ 52 #endif // CHROME_COMMON_WIN_SAFE_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/save_file.cc ('k') | chrome/common/win_safe_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698