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

Side by Side Diff: chrome/browser/ui/webui/options/import_data_handler.h

Issue 629463003: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[w-z]* (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_UI_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 // Chrome personal stuff import data overlay UI handler. 21 // Chrome personal stuff import data overlay UI handler.
22 class ImportDataHandler : public OptionsPageUIHandler, 22 class ImportDataHandler : public OptionsPageUIHandler,
23 public importer::ImporterProgressObserver, 23 public importer::ImporterProgressObserver,
24 public ui::SelectFileDialog::Listener { 24 public ui::SelectFileDialog::Listener {
25 public: 25 public:
26 ImportDataHandler(); 26 ImportDataHandler();
27 virtual ~ImportDataHandler(); 27 virtual ~ImportDataHandler();
28 28
29 // OptionsPageUIHandler: 29 // OptionsPageUIHandler:
30 virtual void GetLocalizedValues( 30 virtual void GetLocalizedValues(
31 base::DictionaryValue* localized_strings) OVERRIDE; 31 base::DictionaryValue* localized_strings) override;
32 virtual void InitializeHandler() OVERRIDE; 32 virtual void InitializeHandler() override;
33 virtual void InitializePage() OVERRIDE; 33 virtual void InitializePage() override;
34 34
35 // content::WebUIMessageHandler: 35 // content::WebUIMessageHandler:
36 virtual void RegisterMessages() OVERRIDE; 36 virtual void RegisterMessages() override;
37 37
38 private: 38 private:
39 void StartImport(const importer::SourceProfile& source_profile, 39 void StartImport(const importer::SourceProfile& source_profile,
40 uint16 imported_items); 40 uint16 imported_items);
41 41
42 void ImportData(const base::ListValue* args); 42 void ImportData(const base::ListValue* args);
43 43
44 // importer::ImporterProgressObserver: 44 // importer::ImporterProgressObserver:
45 virtual void ImportStarted() OVERRIDE; 45 virtual void ImportStarted() override;
46 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE; 46 virtual void ImportItemStarted(importer::ImportItem item) override;
47 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE; 47 virtual void ImportItemEnded(importer::ImportItem item) override;
48 virtual void ImportEnded() OVERRIDE; 48 virtual void ImportEnded() override;
49 49
50 // ui::SelectFileDialog::Listener: 50 // ui::SelectFileDialog::Listener:
51 virtual void FileSelected(const base::FilePath& path, 51 virtual void FileSelected(const base::FilePath& path,
52 int index, 52 int index,
53 void* params) OVERRIDE; 53 void* params) override;
54 54
55 // Opens a file selection dialog to choose the bookmarks HTML file. 55 // Opens a file selection dialog to choose the bookmarks HTML file.
56 void HandleChooseBookmarksFile(const base::ListValue* args); 56 void HandleChooseBookmarksFile(const base::ListValue* args);
57 57
58 scoped_ptr<ImporterList> importer_list_; 58 scoped_ptr<ImporterList> importer_list_;
59 59
60 // If non-null it means importing is in progress. ImporterHost takes care 60 // If non-null it means importing is in progress. ImporterHost takes care
61 // of deleting itself when import is complete. 61 // of deleting itself when import is complete.
62 ExternalProcessImporterHost* importer_host_; // weak 62 ExternalProcessImporterHost* importer_host_; // weak
63 63
64 bool import_did_succeed_; 64 bool import_did_succeed_;
65 65
66 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; 66 scoped_refptr<ui::SelectFileDialog> select_file_dialog_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler); 68 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler);
69 }; 69 };
70 70
71 } // namespace options 71 } // namespace options
72 72
73 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_ 73 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698