| OLD | NEW |
| 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_OPTIONS2_IMPORT_DATA_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER2_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER2_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 20 matching lines...) Expand all Loading... |
| 31 virtual void GetLocalizedValues( | 31 virtual void GetLocalizedValues( |
| 32 base::DictionaryValue* localized_strings) OVERRIDE; | 32 base::DictionaryValue* localized_strings) OVERRIDE; |
| 33 virtual void InitializeHandler() OVERRIDE; | 33 virtual void InitializeHandler() OVERRIDE; |
| 34 virtual void InitializePage() OVERRIDE; | 34 virtual void InitializePage() OVERRIDE; |
| 35 | 35 |
| 36 // WebUIMessageHandler: | 36 // WebUIMessageHandler: |
| 37 virtual void RegisterMessages() OVERRIDE; | 37 virtual void RegisterMessages() OVERRIDE; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 void ImportData(const base::ListValue* args); | 40 void ImportData(const base::ListValue* args); |
| 41 void UpdateSupportedBrowsers(); |
| 41 | 42 |
| 42 // importer::ImporterListObserver: | 43 // importer::ImporterListObserver: |
| 43 virtual void OnSourceProfilesLoaded() OVERRIDE; | 44 virtual void OnSourceProfilesLoaded() OVERRIDE; |
| 44 | 45 |
| 45 // importer::ImporterProgressObserver: | 46 // importer::ImporterProgressObserver: |
| 46 virtual void ImportStarted() OVERRIDE; | 47 virtual void ImportStarted() OVERRIDE; |
| 47 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE; | 48 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE; |
| 48 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE; | 49 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE; |
| 49 virtual void ImportEnded() OVERRIDE; | 50 virtual void ImportEnded() OVERRIDE; |
| 50 | 51 |
| 51 scoped_refptr<ImporterList> importer_list_; | 52 scoped_refptr<ImporterList> importer_list_; |
| 52 | 53 |
| 53 // If non-null it means importing is in progress. ImporterHost takes care | 54 // If non-null it means importing is in progress. ImporterHost takes care |
| 54 // of deleting itself when import is complete. | 55 // of deleting itself when import is complete. |
| 55 ImporterHost* importer_host_; // weak | 56 ImporterHost* importer_host_; // weak |
| 56 | 57 |
| 57 bool import_did_succeed_; | 58 bool import_did_succeed_; |
| 58 | 59 |
| 59 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler); | 60 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler); |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace options2 | 63 } // namespace options2 |
| 63 | 64 |
| 64 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER2_H_ | 65 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER2_H_ |
| OLD | NEW |