| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual void SetFavicons( | 47 virtual void SetFavicons( |
| 48 const std::vector<history::ImportedFaviconUsage>& favicons) OVERRIDE; | 48 const std::vector<history::ImportedFaviconUsage>& favicons) OVERRIDE; |
| 49 | 49 |
| 50 virtual void SetHistoryItems(const std::vector<history::URLRow>& rows, | 50 virtual void SetHistoryItems(const std::vector<history::URLRow>& rows, |
| 51 history::VisitSource visit_source) OVERRIDE; | 51 history::VisitSource visit_source) OVERRIDE; |
| 52 | 52 |
| 53 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, | 53 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, |
| 54 int default_keyword_index, | 54 int default_keyword_index, |
| 55 bool unique_on_host_and_path) OVERRIDE; | 55 bool unique_on_host_and_path) OVERRIDE; |
| 56 | 56 |
| 57 virtual void SetPasswordForm(const webkit_glue::PasswordForm& form) OVERRIDE; | 57 virtual void SetPasswordForm( |
| 58 const webkit::forms::PasswordForm& form) OVERRIDE; |
| 58 | 59 |
| 59 virtual void NotifyStarted() OVERRIDE; | 60 virtual void NotifyStarted() OVERRIDE; |
| 60 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; | 61 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; |
| 61 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; | 62 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; |
| 62 virtual void NotifyEnded() OVERRIDE; | 63 virtual void NotifyEnded() OVERRIDE; |
| 63 | 64 |
| 64 virtual string16 GetLocalizedString(int message_id) OVERRIDE; | 65 virtual string16 GetLocalizedString(int message_id) OVERRIDE; |
| 65 // End ImporterBridge implementation. | 66 // End ImporterBridge implementation. |
| 66 | 67 |
| 67 private: | 68 private: |
| 68 virtual ~ExternalProcessImporterBridge(); | 69 virtual ~ExternalProcessImporterBridge(); |
| 69 | 70 |
| 70 bool Send(IPC::Message* message); | 71 bool Send(IPC::Message* message); |
| 71 | 72 |
| 72 // Holds strings needed by the external importer because the resource | 73 // Holds strings needed by the external importer because the resource |
| 73 // bundle isn't available to the external process. | 74 // bundle isn't available to the external process. |
| 74 scoped_ptr<base::DictionaryValue> localized_strings_; | 75 scoped_ptr<base::DictionaryValue> localized_strings_; |
| 75 | 76 |
| 76 IPC::Message::Sender* sender_; | 77 IPC::Message::Sender* sender_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); | 79 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 82 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
| OLD | NEW |