summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h')
-rw-r--r--chromium/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/chromium/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h b/chromium/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h
index 4ac97e242d3..3b921ff9bc8 100644
--- a/chromium/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h
+++ b/chromium/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h
@@ -17,6 +17,7 @@
#include "chrome/browser/ui/passwords/password_ui_view.h"
#include "chrome/common/extensions/api/passwords_private.h"
#include "components/keyed_service/core/keyed_service.h"
+#include "components/password_manager/core/browser/ui/export_progress_status.h"
#include "extensions/browser/extension_function.h"
namespace content {
@@ -76,8 +77,18 @@ class PasswordsPrivateDelegate : public KeyedService {
virtual void ImportPasswords(content::WebContents* web_contents) = 0;
// Trigger the password export procedure, allowing the user to save a file
- // containing their passwords.
- virtual void ExportPasswords(content::WebContents* web_contents) = 0;
+ // containing their passwords. |callback| will be called with an error
+ // message if the request is rejected, because another export is in progress.
+ virtual void ExportPasswords(
+ base::OnceCallback<void(const std::string&)> callback,
+ content::WebContents* web_contents) = 0;
+
+ // Cancel any ongoing export.
+ virtual void CancelExportPasswords() = 0;
+
+ // Get the most recent progress status.
+ virtual api::passwords_private::ExportProgressStatus
+ GetExportProgressStatus() = 0;
};
} // namespace extensions