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

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

Issue 10837331: Options: s/options2/options/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wut Created 8 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h"
11 #include "chrome/browser/importer/importer_data_types.h"
12 #include "chrome/browser/importer/importer_list_observer.h"
13 #include "chrome/browser/importer/importer_progress_observer.h"
14 #include "chrome/browser/ui/webui/options2/options_ui.h"
15
16 class ImporterHost;
17 class ImporterList;
18
19 namespace options {
20
21 // Chrome personal stuff import data overlay UI handler.
22 class ImportDataHandler : public OptionsPageUIHandler,
23 public importer::ImporterListObserver,
24 public importer::ImporterProgressObserver {
25 public:
26 ImportDataHandler();
27 virtual ~ImportDataHandler();
28
29 // OptionsPageUIHandler:
30 virtual void GetLocalizedValues(
31 base::DictionaryValue* localized_strings) OVERRIDE;
32 virtual void InitializeHandler() OVERRIDE;
33 virtual void InitializePage() OVERRIDE;
34
35 // WebUIMessageHandler:
36 virtual void RegisterMessages() OVERRIDE;
37
38 private:
39 void ImportData(const base::ListValue* args);
40
41 // importer::ImporterListObserver:
42 virtual void OnSourceProfilesLoaded() OVERRIDE;
43
44 // importer::ImporterProgressObserver:
45 virtual void ImportStarted() OVERRIDE;
46 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE;
47 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE;
48 virtual void ImportEnded() OVERRIDE;
49
50 scoped_refptr<ImporterList> importer_list_;
51
52 // If non-null it means importing is in progress. ImporterHost takes care
53 // of deleting itself when import is complete.
54 ImporterHost* importer_host_; // weak
55
56 bool import_did_succeed_;
57
58 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler);
59 };
60
61 } // namespace options
62
63 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options2/home_page_overlay_handler.cc ('k') | chrome/browser/ui/webui/options2/import_data_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698