| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_OS_CRYPT_IE7_PASSWORD_WIN_H_ | 5 #ifndef COMPONENTS_OS_CRYPT_IE7_PASSWORD_WIN_H_ |
| 6 #define COMPONENTS_OS_CRYPT_IE7_PASSWORD_WIN_H_ | 6 #define COMPONENTS_OS_CRYPT_IE7_PASSWORD_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 14 | 13 |
| 15 // Contains the information read from the IE7/IE8 Storage2 key in the registry. | 14 // Contains the information read from the IE7/IE8 Storage2 key in the registry. |
| 16 struct IE7PasswordInfo { | 15 struct IE7PasswordInfo { |
| 17 IE7PasswordInfo(); | 16 IE7PasswordInfo(); |
| 18 ~IE7PasswordInfo(); | 17 ~IE7PasswordInfo(); |
| 19 | 18 |
| 20 // Hash of the url. | 19 // Hash of the url. |
| 21 std::wstring url_hash; | 20 std::wstring url_hash; |
| 22 | 21 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 48 bool DecryptPasswords(const std::wstring& url, | 47 bool DecryptPasswords(const std::wstring& url, |
| 49 const std::vector<unsigned char>& data, | 48 const std::vector<unsigned char>& data, |
| 50 std::vector<DecryptedCredentials>* credentials); | 49 std::vector<DecryptedCredentials>* credentials); |
| 51 | 50 |
| 52 // Returns the hash of a url. | 51 // Returns the hash of a url. |
| 53 std::wstring GetUrlHash(const std::wstring& url); | 52 std::wstring GetUrlHash(const std::wstring& url); |
| 54 | 53 |
| 55 } // namespace ie7_password | 54 } // namespace ie7_password |
| 56 | 55 |
| 57 #endif // COMPONENTS_OS_CRYPT_IE7_PASSWORD_WIN_H_ | 56 #endif // COMPONENTS_OS_CRYPT_IE7_PASSWORD_WIN_H_ |
| OLD | NEW |