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

Side by Side Diff: chrome/browser/ui/webui/settings/settings_import_data_handler.h

Issue 2473053004: MD Settings: Add an Import Data BrowserProxy. (Closed)
Patch Set: fix Created 4 years, 1 month 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698