Chromium Code Reviews| Index: chrome/utility/importer/bookmark_html_reader.h |
| diff --git a/chrome/utility/importer/bookmark_html_reader.h b/chrome/utility/importer/bookmark_html_reader.h |
| index 274c9a272169ee622e9b8f1c64d395e3764ab045..af98dc611f27aa42941c85c283de4fe36be0c82c 100644 |
| --- a/chrome/utility/importer/bookmark_html_reader.h |
| +++ b/chrome/utility/importer/bookmark_html_reader.h |
| @@ -10,6 +10,7 @@ |
| #include "base/callback_forward.h" |
| #include "base/strings/string16.h" |
| +#include "chrome/common/importer/importer_data_types.h" |
| class GURL; |
| struct ImportedBookmarkEntry; |
| @@ -37,6 +38,9 @@ namespace bookmark_html_reader { |
| // |bookmarks| is a pointer to a vector, which is filled with the imported |
| // bookmarks. It may not be NULL. |
| // |
| +// |search_engines| is a pointer to a vector, which is filled with the imported |
| +// search engines. |
| +// |
| // |favicons| is a pointer to a vector, which is filled with the favicons of |
| // imported bookmarks. It may be NULL, in which case favicons are not imported. |
| void ImportBookmarksFile( |
| @@ -44,8 +48,17 @@ void ImportBookmarksFile( |
| const base::Callback<bool(const GURL&)>& valid_url_callback, |
| const base::FilePath& file_path, |
| std::vector<ImportedBookmarkEntry>* bookmarks, |
| + std::vector<importer::SearchEngineInfo>* search_engines, |
| std::vector<ImportedFaviconUsage>* favicons); |
| +// Checks if a bookmark |url| can be imported as search engine. A bookmark |url| |
|
Ilya Sherman
2014/11/07 00:22:34
nit: "as search engine" -> "as a search engine"
Tapu Ghose
2014/11/09 14:03:07
Done.
|
| +// may not be imported as bookmark if |url| contains replacement term(s) in |
|
Ilya Sherman
2014/11/07 00:22:34
nit: "as bookmark" -> "as a bookmark"
Tapu Ghose
2014/11/09 14:03:07
Done.
|
| +// host. However, such |url| may be eligible to be imported as search engine. |
|
Ilya Sherman
2014/11/07 00:22:34
nit: "as search engine" -> "as a search engine"
Tapu Ghose
2014/11/09 14:03:07
Done.
|
| +bool CanImportURLAsSearchEngine(const GURL& url, |
| + const base::string16& keyword, |
| + const base::string16& title, |
| + importer::SearchEngineInfo* search_engine); |
| + |
| namespace internal { |
| // The file format that BookmarkHTMLReader parses starts with a heading |