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

Unified Diff: chrome/browser/extensions/api/passwords_private/passwords_private_api.h

Issue 1892613006: Add functions to the passwords private api that update the lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/passwords_private/passwords_private_api.h
diff --git a/chrome/browser/extensions/api/passwords_private/passwords_private_api.h b/chrome/browser/extensions/api/passwords_private/passwords_private_api.h
index 392a1f678b49630be636de850cc5394aa5735a3a..b8c86d22fbd208b4af39ccbe37944538a47562e5 100644
--- a/chrome/browser/extensions/api/passwords_private/passwords_private_api.h
+++ b/chrome/browser/extensions/api/passwords_private/passwords_private_api.h
@@ -65,6 +65,41 @@ class PasswordsPrivateRequestPlaintextPasswordFunction :
DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRequestPlaintextPasswordFunction);
};
+class PasswordsPrivateRequestSavedPasswordListFunction :
+ public UIThreadExtensionFunction {
+ public:
+ PasswordsPrivateRequestSavedPasswordListFunction() {}
+ DECLARE_EXTENSION_FUNCTION("passwordsPrivate.requestSavedPasswordList",
+ PASSWORDSPRIVATE_REQUESTSAVEDPASSWORDLIST);
+
+ protected:
+ ~PasswordsPrivateRequestSavedPasswordListFunction() override;
+
+ // ExtensionFunction overrides.
+ ResponseAction Run() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRequestSavedPasswordListFunction);
+};
+
+class PasswordsPrivateRequestPasswordExceptionListFunction :
+ public UIThreadExtensionFunction {
+ public:
+ PasswordsPrivateRequestPasswordExceptionListFunction() {}
+ DECLARE_EXTENSION_FUNCTION("passwordsPrivate.requestPasswordExceptionList",
+ PASSWORDSPRIVATE_REQUESTPASSWORDEXCEPTIONLIST);
+
+ protected:
+ ~PasswordsPrivateRequestPasswordExceptionListFunction() override;
+
+ // ExtensionFunction overrides.
+ ResponseAction Run() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(
+ PasswordsPrivateRequestPasswordExceptionListFunction);
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698