| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_IMPORTER_IMPORTER_LOCK_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_LOCK_DIALOG_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_LOCK_DIALOG_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_LOCK_DIALOG_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| 11 namespace importer { | 11 namespace importer { |
| 12 | 12 |
| 13 // This function is called by an ImporterHost, and presents the Firefox profile | 13 // This function is called by an ImporterHost, and presents the Firefox profile |
| 14 // warning dialog. After closing the dialog, the ImportHost receives a callback | 14 // warning dialog. After closing the dialog, the ImportHost receives a callback |
| 15 // with the message either to skip the import, or to continue the process. | 15 // with the message either to skip the import, or to continue the process. |
| 16 void ShowImportLockDialog(gfx::NativeWindow parent, | 16 void ShowImportLockDialog(gfx::NativeWindow parent, |
| 17 const base::Callback<void(bool)>& callback); | 17 const base::Callback<void(bool)>& callback); |
| 18 | 18 |
| 19 // This function is called by an ImporterHost, and closes the Firefox profile |
| 20 // warning dialog. |
| 21 void HideImportLockDialog(); |
| 22 |
| 19 } // namespace importer | 23 } // namespace importer |
| 20 | 24 |
| 21 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LOCK_DIALOG_H_ | 25 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LOCK_DIALOG_H_ |
| OLD | NEW |