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