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

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

Issue 6469067: WebUI: Move chrome/browser/dom_ui/options/ to chrome/browser/webui/options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing mac files Created 9 years, 10 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) 2011 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_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_
6 #define CHROME_BROWSER_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_
7
8 #include "base/ref_counted.h"
9 #include "chrome/browser/dom_ui/options/options_ui.h"
10 #include "chrome/browser/importer/importer.h"
11
12 // Chrome personal stuff import data overlay UI handler.
13 class ImportDataHandler : public OptionsPageUIHandler,
14 public ImporterHost::Observer,
15 public ImporterList::Observer {
16 public:
17 ImportDataHandler();
18 virtual ~ImportDataHandler();
19
20 // OptionsUIHandler implementation.
21 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
22 virtual void Initialize();
23
24 // WebUIMessageHandler implementation.
25 virtual void RegisterMessages();
26
27 private:
28 void ImportData(const ListValue* args);
29
30 // ImporterHost::Observer implementation.
31 virtual void ImportStarted();
32 virtual void ImportItemStarted(importer::ImportItem item);
33 virtual void ImportItemEnded(importer::ImportItem item);
34 virtual void ImportEnded();
35
36 // ImporterList::Observer implementation.
37 virtual void SourceProfilesLoaded();
38
39 scoped_refptr<ImporterList> importer_list_;
40
41 // If non-null it means importing is in progress. ImporterHost takes care
42 // of deleting itself when import is complete.
43 ImporterHost* importer_host_; // weak
44
45 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler);
46 };
47
48 #endif // CHROME_BROWSER_WEBUI_OPTIONS_IMPORT_DATA_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/webui/options/font_settings_utils_win.cc ('k') | chrome/browser/webui/options/import_data_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698