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

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

Issue 1128203005: Add the IDL and stub implementation for the chrome.passwordsPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/lint. Created 5 years, 7 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
new file mode 100644
index 0000000000000000000000000000000000000000..4cef1917f65877cd7aac77e2b9afeac96a7b7e94
--- /dev/null
+++ b/chrome/browser/extensions/api/passwords_private/passwords_private_api.h
@@ -0,0 +1,85 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "extensions/browser/extension_function.h"
+
+namespace extensions {
+
+class PasswordsPrivateCanPasswordAccountBeManagedFunction :
+ public UIThreadExtensionFunction {
+ public:
+ PasswordsPrivateCanPasswordAccountBeManagedFunction() {}
+ DECLARE_EXTENSION_FUNCTION("passwordsPrivate.canPasswordAccountBeManaged",
+ PASSWORDSPRIVATE_CANPASSWORDACCOUNTBEMANAGED);
+
+ protected:
+ ~PasswordsPrivateCanPasswordAccountBeManagedFunction() override;
+
+ // ExtensionFunction overrides.
+ ResponseAction Run() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateCanPasswordAccountBeManagedFunction);
+};
+
+class PasswordsPrivateRemoveSavedPasswordFunction :
+ public UIThreadExtensionFunction {
+ public:
+ PasswordsPrivateRemoveSavedPasswordFunction() {}
+ DECLARE_EXTENSION_FUNCTION("passwordsPrivate.removeSavedPassword",
+ PASSWORDSPRIVATE_REMOVESAVEDPASSWORD);
+
+ protected:
+ ~PasswordsPrivateRemoveSavedPasswordFunction() override;
+
+ // ExtensionFunction overrides.
+ ResponseAction Run() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRemoveSavedPasswordFunction);
+};
+
+class PasswordsPrivateRemovePasswordExceptionFunction :
+ public UIThreadExtensionFunction {
+ public:
+ PasswordsPrivateRemovePasswordExceptionFunction() {}
+ DECLARE_EXTENSION_FUNCTION("passwordsPrivate.removePasswordException",
+ PASSWORDSPRIVATE_REMOVEPASSWORDEXCEPTION);
+
+ protected:
+ ~PasswordsPrivateRemovePasswordExceptionFunction() override;
+
+ // ExtensionFunction overrides.
+ ResponseAction Run() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRemovePasswordExceptionFunction);
+};
+
+class PasswordsPrivateGetPlaintextPasswordFunction :
+ public UIThreadExtensionFunction {
+ public:
+ PasswordsPrivateGetPlaintextPasswordFunction() {}
+ DECLARE_EXTENSION_FUNCTION("passwordsPrivate.GetPlaintextPassword",
+ PASSWORDSPRIVATE_GETPLAINTEXTPASSWORD);
+
+ protected:
+ ~PasswordsPrivateGetPlaintextPasswordFunction() override;
+
+ // ExtensionFunction overrides.
+ ResponseAction Run() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateGetPlaintextPasswordFunction);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698