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 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 importer::VisitSource visit_source) OVERRIDE; | 65 importer::VisitSource visit_source) OVERRIDE; |
66 | 66 |
67 virtual void SetKeywords( | 67 virtual void SetKeywords( |
68 const std::vector<importer::URLKeywordInfo>& url_keywords, | 68 const std::vector<importer::URLKeywordInfo>& url_keywords, |
69 bool unique_on_host_and_path) OVERRIDE; | 69 bool unique_on_host_and_path) OVERRIDE; |
70 | 70 |
71 virtual void SetFirefoxSearchEnginesXMLData( | 71 virtual void SetFirefoxSearchEnginesXMLData( |
72 const std::vector<std::string>& seach_engine_data) OVERRIDE; | 72 const std::vector<std::string>& seach_engine_data) OVERRIDE; |
73 | 73 |
74 virtual void SetPasswordForm( | 74 virtual void SetPasswordForm( |
75 const content::PasswordForm& form) OVERRIDE; | 75 const autofill::PasswordForm& form) OVERRIDE; |
76 | 76 |
77 virtual void NotifyStarted() OVERRIDE; | 77 virtual void NotifyStarted() OVERRIDE; |
78 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; | 78 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; |
79 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; | 79 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; |
80 virtual void NotifyEnded() OVERRIDE; | 80 virtual void NotifyEnded() OVERRIDE; |
81 | 81 |
82 virtual string16 GetLocalizedString(int message_id) OVERRIDE; | 82 virtual string16 GetLocalizedString(int message_id) OVERRIDE; |
83 // End ImporterBridge implementation. | 83 // End ImporterBridge implementation. |
84 | 84 |
85 private: | 85 private: |
86 virtual ~ExternalProcessImporterBridge(); | 86 virtual ~ExternalProcessImporterBridge(); |
87 | 87 |
88 void Send(IPC::Message* message); | 88 void Send(IPC::Message* message); |
89 void SendInternal(IPC::Message* message); | 89 void SendInternal(IPC::Message* message); |
90 | 90 |
91 // Holds strings needed by the external importer because the resource | 91 // Holds strings needed by the external importer because the resource |
92 // bundle isn't available to the external process. | 92 // bundle isn't available to the external process. |
93 scoped_ptr<base::DictionaryValue> localized_strings_; | 93 scoped_ptr<base::DictionaryValue> localized_strings_; |
94 | 94 |
95 IPC::Sender* sender_; | 95 IPC::Sender* sender_; |
96 scoped_refptr<base::TaskRunner> task_runner_; | 96 scoped_refptr<base::TaskRunner> task_runner_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); | 98 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); |
99 }; | 99 }; |
100 | 100 |
101 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 101 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
OLD | NEW |