| 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_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 5 #ifndef CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
| 6 #define CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 6 #define CHROME_UTILITY_IMPORTER_EXTERNAL_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/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/common/importer/importer_bridge.h" | 14 #include "chrome/common/importer/importer_bridge.h" |
| 15 | 15 |
| 16 class GURL; | 16 class GURL; |
| 17 struct ImportedBookmarkEntry; | 17 struct ImportedBookmarkEntry; |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class DictionaryValue; | 20 class DictionaryValue; |
| 21 class TaskRunner; | 21 class TaskRunner; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace importer { | 24 namespace importer { |
| 25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
| 26 struct ImporterIE7PasswordInfo; | 26 struct ImporterIE7PasswordInfo; |
| 27 #endif | 27 #endif |
| 28 struct ImporterURLRow; | 28 struct ImporterURLRow; |
| 29 struct URLKeywordInfo; | 29 struct SearchEngineInfo; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace IPC { | 32 namespace IPC { |
| 33 class Message; | 33 class Message; |
| 34 class Sender; | 34 class Sender; |
| 35 } | 35 } |
| 36 | 36 |
| 37 // When the importer is run in an external process, the bridge is effectively | 37 // When the importer is run in an external process, the bridge is effectively |
| 38 // split in half by the IPC infrastructure. The external bridge receives data | 38 // split in half by the IPC infrastructure. The external bridge receives data |
| 39 // and notifications from the importer, and sends it across IPC. The | 39 // and notifications from the importer, and sends it across IPC. The |
| (...skipping 15 matching lines...) Expand all Loading... |
| 55 #if defined(OS_WIN) | 55 #if defined(OS_WIN) |
| 56 virtual void AddIE7PasswordInfo( | 56 virtual void AddIE7PasswordInfo( |
| 57 const importer::ImporterIE7PasswordInfo& password_info) override; | 57 const importer::ImporterIE7PasswordInfo& password_info) override; |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 void SetFavicons(const std::vector<ImportedFaviconUsage>& favicons) override; | 60 void SetFavicons(const std::vector<ImportedFaviconUsage>& favicons) override; |
| 61 | 61 |
| 62 void SetHistoryItems(const std::vector<ImporterURLRow>& rows, | 62 void SetHistoryItems(const std::vector<ImporterURLRow>& rows, |
| 63 importer::VisitSource visit_source) override; | 63 importer::VisitSource visit_source) override; |
| 64 | 64 |
| 65 void SetKeywords(const std::vector<importer::URLKeywordInfo>& url_keywords, | 65 void SetKeywords( |
| 66 bool unique_on_host_and_path) override; | 66 const std::vector<importer::SearchEngineInfo>& search_engines, |
| 67 bool unique_on_host_and_path) override; |
| 67 | 68 |
| 68 void SetFirefoxSearchEnginesXMLData( | 69 void SetFirefoxSearchEnginesXMLData( |
| 69 const std::vector<std::string>& seach_engine_data) override; | 70 const std::vector<std::string>& seach_engine_data) override; |
| 70 | 71 |
| 71 void SetPasswordForm(const autofill::PasswordForm& form) override; | 72 void SetPasswordForm(const autofill::PasswordForm& form) override; |
| 72 | 73 |
| 73 void SetAutofillFormData( | 74 void SetAutofillFormData( |
| 74 const std::vector<ImporterAutofillFormDataEntry>& entries) override; | 75 const std::vector<ImporterAutofillFormDataEntry>& entries) override; |
| 75 | 76 |
| 76 void NotifyStarted() override; | 77 void NotifyStarted() override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 91 // bundle isn't available to the external process. | 92 // bundle isn't available to the external process. |
| 92 scoped_ptr<base::DictionaryValue> localized_strings_; | 93 scoped_ptr<base::DictionaryValue> localized_strings_; |
| 93 | 94 |
| 94 IPC::Sender* sender_; | 95 IPC::Sender* sender_; |
| 95 scoped_refptr<base::TaskRunner> task_runner_; | 96 scoped_refptr<base::TaskRunner> task_runner_; |
| 96 | 97 |
| 97 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); | 98 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 101 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
| OLD | NEW |