OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_SAFE_UTIL_WIN_H_ |
6 #define CHROME_COMMON_WIN_SAFE_UTIL_H_ | 6 #define CONTENT_COMMON_SAFE_UTIL_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <windows.h> | 10 #include <windows.h> |
11 | 11 |
12 class FilePath; | 12 class FilePath; |
13 | 13 |
14 namespace win_util { | 14 namespace win_util { |
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 |
(...skipping 29 matching lines...) Expand all Loading... |
46 // the Zone Identifier is not supported, like a machine with a FAT32 filesystem. | 46 // the Zone Identifier is not supported, like a machine with a FAT32 filesystem. |
47 // It should not be considered fatal. | 47 // It should not be considered fatal. |
48 // | 48 // |
49 // |full_path| is the path to save the file to, and | 49 // |full_path| is the path to save the file to, and |
50 // |source_url| is the URL where the file was downloaded from. | 50 // |source_url| is the URL where the file was downloaded from. |
51 bool SetInternetZoneIdentifier(const FilePath& full_path, | 51 bool SetInternetZoneIdentifier(const FilePath& full_path, |
52 const std::wstring& source_url); | 52 const std::wstring& source_url); |
53 | 53 |
54 } // namespace win_util | 54 } // namespace win_util |
55 | 55 |
56 #endif // CHROME_COMMON_WIN_SAFE_UTIL_H_ | 56 #endif // CONTENT_COMMON_SAFE_UTIL_WIN_H_ |
OLD | NEW |