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

Side by Side Diff: chrome/browser/password_manager/ie7_password.h

Issue 14348027: Move ie7_password namespace to //components, so it can be used by components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix order of Win includes. Created 7 years, 8 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_IE7_PASSWORD_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_IE7_PASSWORD_H_
7
8 #include <windows.h>
9 #include <string>
10 #include <vector>
11
12 #include "base/basictypes.h"
13 #include "base/time.h"
14
15 // Contains the information read from the IE7/IE8 Storage2 key in the registry.
16 struct IE7PasswordInfo {
17 // Hash of the url.
18 std::wstring url_hash;
19
20 // Encrypted data containing the username, password and some more undocumented
21 // fields.
22 std::vector<unsigned char> encrypted_data;
23
24 // When the login was imported.
25 base::Time date_created;
26 };
27
28 namespace ie7_password {
29
30 // Parses a data structure to find the password and the username.
31 bool GetUserPassFromData(const std::vector<unsigned char>& data,
32 std::wstring* username,
33 std::wstring* password);
34
35 // Decrypts the username and password for a given data vector using the url as
36 // the key.
37 bool DecryptPassword(const std::wstring& url,
38 const std::vector<unsigned char>& data,
39 std::wstring* username, std::wstring* password);
40
41 // Returns the hash of a url.
42 std::wstring GetUrlHash(const std::wstring& url);
43
44 } // namespace ie7_password
45
46 #endif // CHROME_BROWSER_PASSWORD_MANAGER_IE7_PASSWORD_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/in_process_importer_bridge.cc ('k') | chrome/browser/password_manager/ie7_password.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698