Fix memory leak in Sync FakeServerEntity
[chromium-blink-merge.git] / chrome / utility / importer / nss_decryptor_null.h
blobe99334badf09c7b88ec98dcaa082b97cc45a178d
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
3 // found in the LICENSE file.
5 #ifndef CHROME_UTILITY_IMPORTER_NSS_DECRYPTOR_NULL_H_
6 #define CHROME_UTILITY_IMPORTER_NSS_DECRYPTOR_NULL_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "base/strings/string16.h"
14 namespace autofill {
15 struct PasswordForm;
18 namespace base {
19 class FilePath;
22 // A NULL wrapper for Firefox NSS decrypt component, for use in builds where
23 // we do not have the NSS library.
24 class NSSDecryptor {
25 public:
26 NSSDecryptor() {}
27 bool Init(const base::FilePath& dll_path, const base::FilePath& db_path) {
28 return false;
30 base::string16 Decrypt(const std::string& crypt) const {
31 return base::string16();
33 void ParseSignons(const std::string& content,
34 std::vector<autofill::PasswordForm>* forms) {}
35 bool ReadAndParseSignons(const base::FilePath& sqlite_file,
36 std::vector<autofill::PasswordForm>* forms) {
37 return false;
40 private:
41 DISALLOW_COPY_AND_ASSIGN(NSSDecryptor);
44 #endif // CHROME_UTILITY_IMPORTER_NSS_DECRYPTOR_NULL_H_