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_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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual void SetFavicons( | 48 virtual void SetFavicons( |
49 const std::vector<history::ImportedFaviconUsage>& favicons) OVERRIDE; | 49 const std::vector<history::ImportedFaviconUsage>& favicons) OVERRIDE; |
50 | 50 |
51 virtual void SetHistoryItems(const history::URLRows& rows, | 51 virtual void SetHistoryItems(const history::URLRows& rows, |
52 history::VisitSource visit_source) OVERRIDE; | 52 history::VisitSource visit_source) OVERRIDE; |
53 | 53 |
54 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, | 54 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, |
55 bool unique_on_host_and_path) OVERRIDE; | 55 bool unique_on_host_and_path) OVERRIDE; |
56 | 56 |
57 virtual void SetPasswordForm( | 57 virtual void SetPasswordForm( |
58 const webkit::forms::PasswordForm& form) OVERRIDE; | 58 const content::PasswordForm& form) OVERRIDE; |
59 | 59 |
60 virtual void NotifyStarted() OVERRIDE; | 60 virtual void NotifyStarted() OVERRIDE; |
61 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; | 61 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; |
62 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; | 62 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; |
63 virtual void NotifyEnded() OVERRIDE; | 63 virtual void NotifyEnded() OVERRIDE; |
64 | 64 |
65 virtual string16 GetLocalizedString(int message_id) OVERRIDE; | 65 virtual string16 GetLocalizedString(int message_id) OVERRIDE; |
66 // End ImporterBridge implementation. | 66 // End ImporterBridge implementation. |
67 | 67 |
68 private: | 68 private: |
69 virtual ~ExternalProcessImporterBridge(); | 69 virtual ~ExternalProcessImporterBridge(); |
70 | 70 |
71 void Send(IPC::Message* message); | 71 void Send(IPC::Message* message); |
72 void SendInternal(IPC::Message* message); | 72 void SendInternal(IPC::Message* message); |
73 | 73 |
74 // Holds strings needed by the external importer because the resource | 74 // Holds strings needed by the external importer because the resource |
75 // bundle isn't available to the external process. | 75 // bundle isn't available to the external process. |
76 scoped_ptr<base::DictionaryValue> localized_strings_; | 76 scoped_ptr<base::DictionaryValue> localized_strings_; |
77 | 77 |
78 IPC::Sender* sender_; | 78 IPC::Sender* sender_; |
79 scoped_refptr<base::TaskRunner> task_runner_; | 79 scoped_refptr<base::TaskRunner> task_runner_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); | 81 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 84 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
OLD | NEW |