| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SETTINGS_SETTINGS_IMPORT_DATA_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_IMPORT_DATA_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_IMPORT_DATA_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_IMPORT_DATA_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 void OnJavascriptAllowed() override {} | 34 void OnJavascriptAllowed() override {} |
| 35 void OnJavascriptDisallowed() override; | 35 void OnJavascriptDisallowed() override; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 void StartImport(const importer::SourceProfile& source_profile, | 38 void StartImport(const importer::SourceProfile& source_profile, |
| 39 uint16_t imported_items); | 39 uint16_t imported_items); |
| 40 | 40 |
| 41 void ImportData(const base::ListValue* args); | 41 void ImportData(const base::ListValue* args); |
| 42 | 42 |
| 43 void InitializeDialog(const base::ListValue* args); | 43 void InitializeDialog(const base::ListValue* args); |
| 44 void SendBrowserProfileData(); | 44 void SendBrowserProfileData(const std::string& callback_id); |
| 45 | 45 |
| 46 // importer::ImporterProgressObserver: | 46 // importer::ImporterProgressObserver: |
| 47 void ImportStarted() override; | 47 void ImportStarted() override; |
| 48 void ImportItemStarted(importer::ImportItem item) override; | 48 void ImportItemStarted(importer::ImportItem item) override; |
| 49 void ImportItemEnded(importer::ImportItem item) override; | 49 void ImportItemEnded(importer::ImportItem item) override; |
| 50 void ImportEnded() override; | 50 void ImportEnded() override; |
| 51 | 51 |
| 52 // ui::SelectFileDialog::Listener: | 52 // ui::SelectFileDialog::Listener: |
| 53 void FileSelected(const base::FilePath& path, | 53 void FileSelected(const base::FilePath& path, |
| 54 int index, | 54 int index, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 66 bool import_did_succeed_; | 66 bool import_did_succeed_; |
| 67 | 67 |
| 68 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; | 68 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler); | 70 DISALLOW_COPY_AND_ASSIGN(ImportDataHandler); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace settings | 73 } // namespace settings |
| 74 | 74 |
| 75 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_IMPORT_DATA_HANDLER_H_ | 75 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_IMPORT_DATA_HANDLER_H_ |
| OLD | NEW |