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

Unified Diff: chrome/browser/importer/nss_decryptor_system_nss.h

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another gyp attempt Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/importer/nss_decryptor_null.h ('k') | chrome/browser/importer/nss_decryptor_system_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/nss_decryptor_system_nss.h
diff --git a/chrome/browser/importer/nss_decryptor_system_nss.h b/chrome/browser/importer/nss_decryptor_system_nss.h
deleted file mode 100644
index b71b500e5a3818944037e10b4e887e0ed5bc31a1..0000000000000000000000000000000000000000
--- a/chrome/browser/importer/nss_decryptor_system_nss.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_SYSTEM_NSS_H_
-#define CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_SYSTEM_NSS_H_
-
-#include <secmodt.h>
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/strings/string16.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace content {
-struct PasswordForm;
-}
-
-// A wrapper for Firefox NSS decrypt component.
-class NSSDecryptor {
- public:
- NSSDecryptor();
- ~NSSDecryptor();
-
- // Initializes NSS if it hasn't already been initialized.
- bool Init(const base::FilePath& dll_path, const base::FilePath& db_path);
-
- // Decrypts Firefox stored passwords. Before using this method,
- // make sure Init() returns true.
- string16 Decrypt(const std::string& crypt) const;
-
- // Parses the Firefox password file content, decrypts the
- // username/password and reads other related information.
- // The result will be stored in |forms|.
- void ParseSignons(const std::string& content,
- std::vector<content::PasswordForm>* forms);
-
- // Reads and parses the Firefox password sqlite db, decrypts the
- // username/password and reads other related information.
- // The result will be stored in |forms|.
- bool ReadAndParseSignons(const base::FilePath& sqlite_file,
- std::vector<content::PasswordForm>* forms);
- private:
- // Does not actually free the slot, since we'll free it when NSSDecryptor is
- // destroyed.
- void FreeSlot(PK11SlotInfo* slot) const {}
- PK11SlotInfo* GetKeySlotForDB() const { return db_slot_; }
-
- SECStatus PK11SDR_DecryptWithSlot(
- PK11SlotInfo* slot, SECItem* data, SECItem* result, void* cx) const;
-
- bool is_nss_initialized_;
- PK11SlotInfo* db_slot_;
-
- DISALLOW_COPY_AND_ASSIGN(NSSDecryptor);
-};
-
-#endif // CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_SYSTEM_NSS_H_
« no previous file with comments | « chrome/browser/importer/nss_decryptor_null.h ('k') | chrome/browser/importer/nss_decryptor_system_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698