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

Side by Side Diff: chrome/browser/importer/firefox_importer_utils.h

Issue 118443: Linux: Import passwords from Firefox. (Closed)
Patch Set: Created 11 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/importer/firefox_importer_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_FIREFOX_IMPORTER_UTILS_H_ 5 #ifndef CHROME_BROWSER_IMPORTER_FIREFOX_IMPORTER_UTILS_H_
6 #define CHROME_BROWSER_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ 6 #define CHROME_BROWSER_IMPORTER_FIREFOX_IMPORTER_UTILS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/native_library.h"
10 #include "base/values.h" 11 #include "base/values.h"
11 #include "build/build_config.h" 12 #include "build/build_config.h"
12 #include "webkit/glue/password_form.h" 13 #include "webkit/glue/password_form.h"
13 14
14 class GURL; 15 class GURL;
15 class TemplateURL; 16 class TemplateURL;
16 17
17 #if defined(OS_WIN) 18 #if defined(OS_WIN)
18 // Detects which version of Firefox is installed from registry. Returns its 19 // Detects which version of Firefox is installed from registry. Returns its
19 // major version, and drops the minor version. Returns 0 if 20 // major version, and drops the minor version. Returns 0 if
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 SECITEMFreeItemFunc SECITEM_FreeItem; 204 SECITEMFreeItemFunc SECITEM_FreeItem;
204 PLArenaFinishFunc PL_ArenaFinish; 205 PLArenaFinishFunc PL_ArenaFinish;
205 PRCleanupFunc PR_Cleanup; 206 PRCleanupFunc PR_Cleanup;
206 207
207 // Libraries necessary for decrypting the passwords. 208 // Libraries necessary for decrypting the passwords.
208 static const wchar_t kNSS3Library[]; 209 static const wchar_t kNSS3Library[];
209 static const wchar_t kSoftokn3Library[]; 210 static const wchar_t kSoftokn3Library[];
210 static const wchar_t kPLDS4Library[]; 211 static const wchar_t kPLDS4Library[];
211 static const wchar_t kNSPR4Library[]; 212 static const wchar_t kNSPR4Library[];
212 213
213 #if defined(OS_WIN)
214 // NSS3 module handles. 214 // NSS3 module handles.
215 HMODULE nss3_dll_; 215 base::NativeLibrary nss3_dll_;
216 HMODULE softokn3_dll_; 216 base::NativeLibrary softokn3_dll_;
217 #endif
218 217
219 // True if NSS_Init() has been called 218 // True if NSS_Init() has been called
220 bool is_nss_initialized_; 219 bool is_nss_initialized_;
221 220
222 DISALLOW_COPY_AND_ASSIGN(NSSDecryptor); 221 DISALLOW_COPY_AND_ASSIGN(NSSDecryptor);
223 }; 222 };
224 223
225 #endif // CHROME_BROWSER_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ 224 #endif // CHROME_BROWSER_IMPORTER_FIREFOX_IMPORTER_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/importer/firefox_importer_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698