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_IN_PROCESS_IMPORTER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ |
6 #define CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ | 6 #define CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 class InProcessImporterBridge : public ImporterBridge { | 31 class InProcessImporterBridge : public ImporterBridge { |
32 public: | 32 public: |
33 InProcessImporterBridge(ProfileWriter* writer, | 33 InProcessImporterBridge(ProfileWriter* writer, |
34 base::WeakPtr<ExternalProcessImporterHost> host); | 34 base::WeakPtr<ExternalProcessImporterHost> host); |
35 | 35 |
36 // Begin ImporterBridge implementation: | 36 // Begin ImporterBridge implementation: |
37 virtual void AddBookmarks( | 37 virtual void AddBookmarks( |
38 const std::vector<ImportedBookmarkEntry>& bookmarks, | 38 const std::vector<ImportedBookmarkEntry>& bookmarks, |
39 const base::string16& first_folder_name) OVERRIDE; | 39 const base::string16& first_folder_name) override; |
40 | 40 |
41 virtual void AddHomePage(const GURL& home_page) OVERRIDE; | 41 virtual void AddHomePage(const GURL& home_page) override; |
42 | 42 |
43 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
44 virtual void AddIE7PasswordInfo( | 44 virtual void AddIE7PasswordInfo( |
45 const importer::ImporterIE7PasswordInfo& password_info) OVERRIDE; | 45 const importer::ImporterIE7PasswordInfo& password_info) override; |
46 #endif | 46 #endif |
47 | 47 |
48 virtual void SetFavicons( | 48 virtual void SetFavicons( |
49 const std::vector<ImportedFaviconUsage>& favicons) OVERRIDE; | 49 const std::vector<ImportedFaviconUsage>& favicons) override; |
50 | 50 |
51 virtual void SetHistoryItems(const std::vector<ImporterURLRow>& rows, | 51 virtual void SetHistoryItems(const std::vector<ImporterURLRow>& rows, |
52 importer::VisitSource visit_source) OVERRIDE; | 52 importer::VisitSource visit_source) override; |
53 | 53 |
54 virtual void SetKeywords( | 54 virtual void SetKeywords( |
55 const std::vector<importer::URLKeywordInfo>& url_keywords, | 55 const std::vector<importer::URLKeywordInfo>& url_keywords, |
56 bool unique_on_host_and_path) OVERRIDE; | 56 bool unique_on_host_and_path) override; |
57 | 57 |
58 virtual void SetFirefoxSearchEnginesXMLData( | 58 virtual void SetFirefoxSearchEnginesXMLData( |
59 const std::vector<std::string>& search_engine_data) OVERRIDE; | 59 const std::vector<std::string>& search_engine_data) override; |
60 | 60 |
61 virtual void SetPasswordForm( | 61 virtual void SetPasswordForm( |
62 const autofill::PasswordForm& form) OVERRIDE; | 62 const autofill::PasswordForm& form) override; |
63 | 63 |
64 virtual void SetAutofillFormData( | 64 virtual void SetAutofillFormData( |
65 const std::vector<ImporterAutofillFormDataEntry>& entries) OVERRIDE; | 65 const std::vector<ImporterAutofillFormDataEntry>& entries) override; |
66 | 66 |
67 virtual void NotifyStarted() OVERRIDE; | 67 virtual void NotifyStarted() override; |
68 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; | 68 virtual void NotifyItemStarted(importer::ImportItem item) override; |
69 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; | 69 virtual void NotifyItemEnded(importer::ImportItem item) override; |
70 virtual void NotifyEnded() OVERRIDE; | 70 virtual void NotifyEnded() override; |
71 | 71 |
72 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE; | 72 virtual base::string16 GetLocalizedString(int message_id) override; |
73 // End ImporterBridge implementation. | 73 // End ImporterBridge implementation. |
74 | 74 |
75 private: | 75 private: |
76 virtual ~InProcessImporterBridge(); | 76 virtual ~InProcessImporterBridge(); |
77 | 77 |
78 ProfileWriter* const writer_; // weak | 78 ProfileWriter* const writer_; // weak |
79 const base::WeakPtr<ExternalProcessImporterHost> host_; | 79 const base::WeakPtr<ExternalProcessImporterHost> host_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge); | 81 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ | 84 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ |
OLD | NEW |