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_BROWSER_IMPORTER_NSS_DECRYPTOR_NULL_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_NULL_H_ |
6 #define CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_NULL_H_ | 6 #define CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_NULL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 | 13 |
14 class FilePath; | 14 class FilePath; |
15 | 15 |
16 namespace webkit { | 16 namespace content { |
17 namespace forms { | |
18 struct PasswordForm; | 17 struct PasswordForm; |
19 } | 18 } |
20 } | |
21 | 19 |
22 // A NULL wrapper for Firefox NSS decrypt component, for use in builds where | 20 // A NULL wrapper for Firefox NSS decrypt component, for use in builds where |
23 // we do not have the NSS library. | 21 // we do not have the NSS library. |
24 class NSSDecryptor { | 22 class NSSDecryptor { |
25 public: | 23 public: |
26 NSSDecryptor() {} | 24 NSSDecryptor() {} |
27 bool Init(const FilePath& dll_path, const FilePath& db_path) { return false; } | 25 bool Init(const FilePath& dll_path, const FilePath& db_path) { return false; } |
28 string16 Decrypt(const std::string& crypt) const { return string16(); } | 26 string16 Decrypt(const std::string& crypt) const { return string16(); } |
29 void ParseSignons(const std::string& content, | 27 void ParseSignons(const std::string& content, |
30 std::vector<webkit::forms::PasswordForm>* forms) {} | 28 std::vector<content::PasswordForm>* forms) {} |
31 bool ReadAndParseSignons(const FilePath& sqlite_file, | 29 bool ReadAndParseSignons(const FilePath& sqlite_file, |
32 std::vector<webkit::forms::PasswordForm>* forms) { | 30 std::vector<content::PasswordForm>* forms) { |
33 return false; | 31 return false; |
34 } | 32 } |
35 | 33 |
36 private: | 34 private: |
37 DISALLOW_COPY_AND_ASSIGN(NSSDecryptor); | 35 DISALLOW_COPY_AND_ASSIGN(NSSDecryptor); |
38 }; | 36 }; |
39 | 37 |
40 #endif // CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_NULL_H_ | 38 #endif // CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_NULL_H_ |
OLD | NEW |