OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |