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 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 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 #include <windows.h> | 9 #include <windows.h> |
11 | 10 |
12 class FilePath; | 11 class FilePath; |
13 | 12 |
14 namespace win_util { | 13 namespace win_util { |
15 | 14 |
16 // Open or run a downloaded file via the Windows shell, possibly showing first | 15 // 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 | 16 // a consent dialog if the the file is deemed dangerous. This function is an |
(...skipping 29 matching lines...) Expand all Loading... |
47 // It should not be considered fatal. | 46 // It should not be considered fatal. |
48 // | 47 // |
49 // |full_path| is the path to save the file to, and | 48 // |full_path| is the path to save the file to, and |
50 // |source_url| is the URL where the file was downloaded from. | 49 // |source_url| is the URL where the file was downloaded from. |
51 bool SetInternetZoneIdentifier(const FilePath& full_path, | 50 bool SetInternetZoneIdentifier(const FilePath& full_path, |
52 const std::wstring& source_url); | 51 const std::wstring& source_url); |
53 | 52 |
54 } // namespace win_util | 53 } // namespace win_util |
55 | 54 |
56 #endif // CONTENT_COMMON_SAFE_UTIL_WIN_H_ | 55 #endif // CONTENT_COMMON_SAFE_UTIL_WIN_H_ |
OLD | NEW |