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