Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Side by Side Diff: chrome/browser/importer/in_process_importer_bridge.h

Issue 648653003: Standardize usage of virtual/override/final in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
27 struct ImporterURlRow; 27 struct ImporterURlRow;
28 struct URLKeywordInfo; 28 struct URLKeywordInfo;
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 void AddBookmarks(const std::vector<ImportedBookmarkEntry>& bookmarks,
38 const std::vector<ImportedBookmarkEntry>& bookmarks, 38 const base::string16& first_folder_name) override;
39 const base::string16& first_folder_name) override;
40 39
41 virtual void AddHomePage(const GURL& home_page) override; 40 void AddHomePage(const GURL& home_page) override;
42 41
43 #if defined(OS_WIN) 42 #if defined(OS_WIN)
44 virtual void AddIE7PasswordInfo( 43 virtual void AddIE7PasswordInfo(
45 const importer::ImporterIE7PasswordInfo& password_info) override; 44 const importer::ImporterIE7PasswordInfo& password_info) override;
46 #endif 45 #endif
47 46
48 virtual void SetFavicons( 47 void SetFavicons(const std::vector<ImportedFaviconUsage>& favicons) override;
49 const std::vector<ImportedFaviconUsage>& favicons) override;
50 48
51 virtual void SetHistoryItems(const std::vector<ImporterURLRow>& rows, 49 void SetHistoryItems(const std::vector<ImporterURLRow>& rows,
52 importer::VisitSource visit_source) override; 50 importer::VisitSource visit_source) override;
53 51
54 virtual void SetKeywords( 52 void SetKeywords(const std::vector<importer::URLKeywordInfo>& url_keywords,
55 const std::vector<importer::URLKeywordInfo>& url_keywords, 53 bool unique_on_host_and_path) override;
56 bool unique_on_host_and_path) override;
57 54
58 virtual void SetFirefoxSearchEnginesXMLData( 55 void SetFirefoxSearchEnginesXMLData(
59 const std::vector<std::string>& search_engine_data) override; 56 const std::vector<std::string>& search_engine_data) override;
60 57
61 virtual void SetPasswordForm( 58 void SetPasswordForm(const autofill::PasswordForm& form) override;
62 const autofill::PasswordForm& form) override;
63 59
64 virtual void SetAutofillFormData( 60 void SetAutofillFormData(
65 const std::vector<ImporterAutofillFormDataEntry>& entries) override; 61 const std::vector<ImporterAutofillFormDataEntry>& entries) override;
66 62
67 virtual void NotifyStarted() override; 63 void NotifyStarted() override;
68 virtual void NotifyItemStarted(importer::ImportItem item) override; 64 void NotifyItemStarted(importer::ImportItem item) override;
69 virtual void NotifyItemEnded(importer::ImportItem item) override; 65 void NotifyItemEnded(importer::ImportItem item) override;
70 virtual void NotifyEnded() override; 66 void NotifyEnded() override;
71 67
72 virtual base::string16 GetLocalizedString(int message_id) override; 68 base::string16 GetLocalizedString(int message_id) override;
73 // End ImporterBridge implementation. 69 // End ImporterBridge implementation.
74 70
75 private: 71 private:
76 virtual ~InProcessImporterBridge(); 72 ~InProcessImporterBridge() override;
77 73
78 ProfileWriter* const writer_; // weak 74 ProfileWriter* const writer_; // weak
79 const base::WeakPtr<ExternalProcessImporterHost> host_; 75 const base::WeakPtr<ExternalProcessImporterHost> host_;
80 76
81 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge); 77 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge);
82 }; 78 };
83 79
84 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ 80 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/firefox_importer_browsertest.cc ('k') | chrome/browser/importer/in_process_importer_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698