| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IN_PROCESS_IMPORTER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ | 6 #define CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 InProcessImporterBridge(ProfileWriter* writer, | 33 InProcessImporterBridge(ProfileWriter* writer, |
| 34 base::WeakPtr<ExternalProcessImporterHost> host); | 34 base::WeakPtr<ExternalProcessImporterHost> host); |
| 35 | 35 |
| 36 // Begin ImporterBridge implementation: | 36 // Begin ImporterBridge implementation: |
| 37 void AddBookmarks(const std::vector<ImportedBookmarkEntry>& bookmarks, | 37 void AddBookmarks(const std::vector<ImportedBookmarkEntry>& bookmarks, |
| 38 const base::string16& first_folder_name) override; | 38 const base::string16& first_folder_name) override; |
| 39 | 39 |
| 40 void AddHomePage(const GURL& home_page) override; | 40 void AddHomePage(const GURL& home_page) override; |
| 41 | 41 |
| 42 #if defined(OS_WIN) | 42 #if defined(OS_WIN) |
| 43 virtual void AddIE7PasswordInfo( | 43 void AddIE7PasswordInfo( |
| 44 const importer::ImporterIE7PasswordInfo& password_info) override; | 44 const importer::ImporterIE7PasswordInfo& password_info) override; |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 void SetFavicons(const favicon_base::FaviconUsageDataList& favicons) override; | 47 void SetFavicons(const favicon_base::FaviconUsageDataList& favicons) override; |
| 48 | 48 |
| 49 void SetHistoryItems(const std::vector<ImporterURLRow>& rows, | 49 void SetHistoryItems(const std::vector<ImporterURLRow>& rows, |
| 50 importer::VisitSource visit_source) override; | 50 importer::VisitSource visit_source) override; |
| 51 | 51 |
| 52 void SetKeywords( | 52 void SetKeywords( |
| 53 const std::vector<importer::SearchEngineInfo>& search_engines, | 53 const std::vector<importer::SearchEngineInfo>& search_engines, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 72 private: | 72 private: |
| 73 ~InProcessImporterBridge() override; | 73 ~InProcessImporterBridge() override; |
| 74 | 74 |
| 75 ProfileWriter* const writer_; // weak | 75 ProfileWriter* const writer_; // weak |
| 76 const base::WeakPtr<ExternalProcessImporterHost> host_; | 76 const base::WeakPtr<ExternalProcessImporterHost> host_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge); | 78 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ | 81 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ |
| OLD | NEW |