| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/importer/importer_bridge.h" | |
| 16 #include "chrome/browser/importer/profile_writer.h" | 15 #include "chrome/browser/importer/profile_writer.h" |
| 16 #include "chrome/common/importer/importer_bridge.h" |
| 17 | 17 |
| 18 class GURL; | 18 class GURL; |
| 19 struct ImportedBookmarkEntry; | 19 struct ImportedBookmarkEntry; |
| 20 struct ImportedFaviconUsage; | 20 struct ImportedFaviconUsage; |
| 21 class ExternalProcessImporterHost; | 21 class ExternalProcessImporterHost; |
| 22 | 22 |
| 23 namespace importer { | 23 namespace importer { |
| 24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 25 struct ImporterIE7PasswordInfo; | 25 struct ImporterIE7PasswordInfo; |
| 26 #endif | 26 #endif |
| (...skipping 15 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
| 44 virtual void AddIE7PasswordInfo( | 44 virtual void AddIE7PasswordInfo( |
| 45 const importer::ImporterIE7PasswordInfo& password_info) OVERRIDE; | 45 const importer::ImporterIE7PasswordInfo& password_info) OVERRIDE; |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 virtual void SetFavicons( | 48 virtual void SetFavicons( |
| 49 const std::vector<ImportedFaviconUsage>& favicons) OVERRIDE; | 49 const std::vector<ImportedFaviconUsage>& favicons) OVERRIDE; |
| 50 | 50 |
| 51 virtual void SetHistoryItems(const std::vector<ImporterURLRow>& rows, | 51 virtual void SetHistoryItems(const std::vector<ImporterURLRow>& rows, |
| 52 history::VisitSource visit_source) OVERRIDE; | 52 ImporterVisitSource visit_source) OVERRIDE; |
| 53 | 53 |
| 54 virtual void SetKeywords( | 54 virtual void SetKeywords( |
| 55 const std::vector<importer::URLKeywordInfo>& url_keywords, | 55 const std::vector<importer::URLKeywordInfo>& url_keywords, |
| 56 bool unique_on_host_and_path) OVERRIDE; | 56 bool unique_on_host_and_path) OVERRIDE; |
| 57 | 57 |
| 58 virtual void SetFirefoxSearchEnginesXMLData( | 58 virtual void SetFirefoxSearchEnginesXMLData( |
| 59 const std::vector<std::string>& search_engine_data) OVERRIDE; | 59 const std::vector<std::string>& search_engine_data) OVERRIDE; |
| 60 | 60 |
| 61 virtual void SetPasswordForm( | 61 virtual void SetPasswordForm( |
| 62 const content::PasswordForm& form) OVERRIDE; | 62 const content::PasswordForm& form) OVERRIDE; |
| 63 | 63 |
| 64 virtual void NotifyStarted() OVERRIDE; | 64 virtual void NotifyStarted() OVERRIDE; |
| 65 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; | 65 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; |
| 66 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; | 66 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; |
| 67 virtual void NotifyEnded() OVERRIDE; | 67 virtual void NotifyEnded() OVERRIDE; |
| 68 | 68 |
| 69 virtual string16 GetLocalizedString(int message_id) OVERRIDE; | 69 virtual string16 GetLocalizedString(int message_id) OVERRIDE; |
| 70 // End ImporterBridge implementation. | 70 // End ImporterBridge implementation. |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 virtual ~InProcessImporterBridge(); | 73 virtual ~InProcessImporterBridge(); |
| 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 |