| Index: chrome/browser/importer/firefox_importer_utils.h
|
| ===================================================================
|
| --- chrome/browser/importer/firefox_importer_utils.h (revision 10540)
|
| +++ chrome/browser/importer/firefox_importer_utils.h (working copy)
|
| @@ -5,6 +5,7 @@
|
| #ifndef CHROME_BROWSER_IMPORTER_FIREFOX_IMPORTER_UTILS_H_
|
| #define CHROME_BROWSER_IMPORTER_FIREFOX_IMPORTER_UTILS_H_
|
|
|
| +#include "base/basictypes.h"
|
| #include "base/values.h"
|
| #include "build/build_config.h"
|
| #include "webkit/glue/password_form.h"
|
| @@ -18,15 +19,12 @@
|
| // biased to return the biggest version.
|
| int GetCurrentFirefoxMajorVersion();
|
|
|
| +#if defined(OS_WIN)
|
| // Gets the full path of the profiles.ini file. This file records
|
| // the profiles that can be used by Firefox. Returns an empty
|
| // string if failed.
|
| std::wstring GetProfilesINI();
|
|
|
| -// Detects where Firefox lives. Returns a empty string if Firefox
|
| -// is not installed.
|
| -std::wstring GetFirefoxInstallPath();
|
| -
|
| // Parses the profile.ini file, and stores its information in |root|.
|
| // This file is a plain-text file. Key/value pairs are stored one per
|
| // line, and they are separeated in different sections. For example:
|
| @@ -40,7 +38,12 @@
|
| // We set "[value]" in path "<Section>.<Key>". For example, the path
|
| // "Genenral.StartWithLastProfile" has the value "1".
|
| void ParseProfileINI(std::wstring file, DictionaryValue* root);
|
| +#endif
|
|
|
| +// Detects where Firefox lives. Returns a empty string if Firefox
|
| +// is not installed.
|
| +std::wstring GetFirefoxInstallPath();
|
| +
|
| // Returns true if we want to add the URL to the history. We filter
|
| // out the URL with a unsupported scheme.
|
| bool CanImportURL(const GURL& url);
|
|
|