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

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

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Initialize -> InitializeHandler, SendPageValues -> InitializePage Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 10 matching lines...) Expand all
21 class ImportDataHandler : public OptionsPageUIHandler, 21 class ImportDataHandler : public OptionsPageUIHandler,
22 public importer::ImporterListObserver, 22 public importer::ImporterListObserver,
23 public importer::ImporterProgressObserver { 23 public importer::ImporterProgressObserver {
24 public: 24 public:
25 ImportDataHandler(); 25 ImportDataHandler();
26 virtual ~ImportDataHandler(); 26 virtual ~ImportDataHandler();
27 27
28 // OptionsPageUIHandler: 28 // OptionsPageUIHandler:
29 virtual void GetLocalizedValues( 29 virtual void GetLocalizedValues(
30 base::DictionaryValue* localized_strings) OVERRIDE; 30 base::DictionaryValue* localized_strings) OVERRIDE;
31 virtual void Initialize() OVERRIDE; 31 virtual void InitializeHandler() OVERRIDE;
32 32
33 // WebUIMessageHandler: 33 // WebUIMessageHandler:
34 virtual void RegisterMessages() OVERRIDE; 34 virtual void RegisterMessages() OVERRIDE;
35 35
36 private: 36 private:
37 void ImportData(const base::ListValue* args); 37 void ImportData(const base::ListValue* args);
38 38
39 // importer::ImporterListObserver: 39 // importer::ImporterListObserver:
40 virtual void OnSourceProfilesLoaded() OVERRIDE; 40 virtual void OnSourceProfilesLoaded() OVERRIDE;
41 41
42 // importer::ImporterProgressObserver: 42 // importer::ImporterProgressObserver:
43 virtual void ImportStarted() OVERRIDE; 43 virtual void ImportStarted() OVERRIDE;
44 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE; 44 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE;
45 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE; 45 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE;
46 virtual void ImportEnded() OVERRIDE; 46 virtual void ImportEnded() OVERRIDE;
47 47
48 scoped_refptr<ImporterList> importer_list_; 48 scoped_refptr<ImporterList> importer_list_;
49 49
50 // If non-null it means importing is in progress. ImporterHost takes care 50 // If non-null it means importing is in progress. ImporterHost takes care
51 // of deleting itself when import is complete. 51 // of deleting itself when import is complete.
52 ImporterHost* importer_host_; // weak 52 ImporterHost* importer_host_; // weak
53 53
54 bool import_did_succeed_; 54 bool import_did_succeed_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler); 56 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler);
57 }; 57 };
58 58
59 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_ 59 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698