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 <string> | |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/importer/importer_bridge.h" | 14 #include "chrome/browser/importer/importer_bridge.h" |
14 | 15 |
15 class GURL; | 16 class GURL; |
16 struct ImportedBookmarkEntry; | 17 struct ImportedBookmarkEntry; |
17 | 18 |
(...skipping 30 matching lines...) Expand all Loading... | |
48 virtual void AddIE7PasswordInfo( | 49 virtual void AddIE7PasswordInfo( |
49 const IE7PasswordInfo& password_info) OVERRIDE; | 50 const IE7PasswordInfo& password_info) OVERRIDE; |
50 #endif | 51 #endif |
51 | 52 |
52 virtual void SetFavicons( | 53 virtual void SetFavicons( |
53 const std::vector<ImportedFaviconUsage>& favicons) OVERRIDE; | 54 const std::vector<ImportedFaviconUsage>& favicons) OVERRIDE; |
54 | 55 |
55 virtual void SetHistoryItems(const history::URLRows& rows, | 56 virtual void SetHistoryItems(const history::URLRows& rows, |
56 history::VisitSource visit_source) OVERRIDE; | 57 history::VisitSource visit_source) OVERRIDE; |
57 | 58 |
58 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, | 59 virtual void SetKeywords( |
59 bool unique_on_host_and_path) OVERRIDE; | 60 const std::vector<importer::URLKeywordInfo>& url_keywords, |
gab
2013/06/27 22:07:29
Forward-declare URLKeywordInfo
ananta
2013/06/27 22:29:55
Done.
| |
61 bool unique_on_host_and_path) OVERRIDE; | |
62 | |
63 virtual void SetFirefoxSearchEnginesXMLData( | |
64 const std::vector<std::string>& seach_engine_data) OVERRIDE; | |
60 | 65 |
61 virtual void SetPasswordForm( | 66 virtual void SetPasswordForm( |
62 const content::PasswordForm& form) OVERRIDE; | 67 const content::PasswordForm& form) OVERRIDE; |
63 | 68 |
64 virtual void NotifyStarted() OVERRIDE; | 69 virtual void NotifyStarted() OVERRIDE; |
65 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; | 70 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; |
66 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; | 71 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; |
67 virtual void NotifyEnded() OVERRIDE; | 72 virtual void NotifyEnded() OVERRIDE; |
68 | 73 |
69 virtual string16 GetLocalizedString(int message_id) OVERRIDE; | 74 virtual string16 GetLocalizedString(int message_id) OVERRIDE; |
70 // End ImporterBridge implementation. | 75 // End ImporterBridge implementation. |
71 | 76 |
72 private: | 77 private: |
73 virtual ~ExternalProcessImporterBridge(); | 78 virtual ~ExternalProcessImporterBridge(); |
74 | 79 |
75 void Send(IPC::Message* message); | 80 void Send(IPC::Message* message); |
76 void SendInternal(IPC::Message* message); | 81 void SendInternal(IPC::Message* message); |
77 | 82 |
78 // Holds strings needed by the external importer because the resource | 83 // Holds strings needed by the external importer because the resource |
79 // bundle isn't available to the external process. | 84 // bundle isn't available to the external process. |
80 scoped_ptr<base::DictionaryValue> localized_strings_; | 85 scoped_ptr<base::DictionaryValue> localized_strings_; |
81 | 86 |
82 IPC::Sender* sender_; | 87 IPC::Sender* sender_; |
83 scoped_refptr<base::TaskRunner> task_runner_; | 88 scoped_refptr<base::TaskRunner> task_runner_; |
84 | 89 |
85 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); | 90 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); |
86 }; | 91 }; |
87 | 92 |
88 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 93 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
OLD | NEW |