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

Side by Side Diff: chrome/browser/dom_ui/import_data_handler.h

Issue 3167028: Fix bug in ImportingData Overlay (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: sync Created 10 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
« no previous file with comments | « no previous file | chrome/browser/dom_ui/import_data_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_DOM_UI_IMPORT_DATA_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_IMPORT_DATA_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_IMPORT_DATA_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_IMPORT_DATA_HANDLER_H_
7 7
8 #include "chrome/browser/dom_ui/options_ui.h" 8 #include "chrome/browser/dom_ui/options_ui.h"
9 #include "chrome/browser/importer/importer.h" 9 #include "chrome/browser/importer/importer.h"
10 10
11 // Chrome personal stuff import data overlay UI handler. 11 // Chrome personal stuff import data overlay UI handler.
12 class ImportDataHandler : public OptionsPageUIHandler, 12 class ImportDataHandler : public OptionsPageUIHandler,
13 public ImporterHost::Observer { 13 public ImporterHost::Observer {
14 public: 14 public:
15 ImportDataHandler(); 15 ImportDataHandler();
16 virtual ~ImportDataHandler(); 16 virtual ~ImportDataHandler();
17 17
18 virtual void Initialize(); 18 virtual void Initialize();
19 19
20 // OptionsUIHandler implementation. 20 // OptionsUIHandler implementation.
21 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 21 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
22 22
23 // DOMMessageHandler implementation. 23 // DOMMessageHandler implementation.
24 virtual void RegisterMessages(); 24 virtual void RegisterMessages();
25 25
26 private: 26 private:
27 void LoadImporter(const ListValue* args);
27 void DetectSupportedBrowsers(); 28 void DetectSupportedBrowsers();
28 void ImportData(const ListValue* args); 29 void ImportData(const ListValue* args);
29 30
30 //Callback from ImporterHost. Close the Dialog. 31 //Callback from ImporterHost. Close the Dialog.
31 virtual void ImportStarted(); 32 virtual void ImportStarted();
32 virtual void ImportItemStarted(importer::ImportItem item); 33 virtual void ImportItemStarted(importer::ImportItem item);
33 virtual void ImportItemEnded(importer::ImportItem item); 34 virtual void ImportItemEnded(importer::ImportItem item);
34 virtual void ImportEnded(); 35 virtual void ImportEnded();
35 36
36 // If non-null it means importing is in progress. ImporterHost takes care 37 // If non-null it means importing is in progress. ImporterHost takes care
37 // of deleting itself when done.import. 38 // of deleting itself when done import.
38 scoped_refptr<ImporterHost> importer_host_; 39 scoped_refptr<ImporterHost> importer_host_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler); 41 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler);
41 }; 42 };
42 43
43 #endif // CHROME_BROWSER_DOM_UI_IMPORT_DATA_HANDLER_H_ 44 #endif // CHROME_BROWSER_DOM_UI_IMPORT_DATA_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/dom_ui/import_data_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698