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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "extensions/browser/extension_function.h"
12
13 namespace extensions {
14
15 class PasswordsPrivateCanPasswordAccountBeManagedFunction :
16 public UIThreadExtensionFunction {
17 public:
18 PasswordsPrivateCanPasswordAccountBeManagedFunction() {}
19 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.canPasswordAccountBeManaged",
20 PASSWORDSPRIVATE_CANPASSWORDACCOUNTBEMANAGED);
21
22 protected:
23 ~PasswordsPrivateCanPasswordAccountBeManagedFunction() override;
24
25 // ExtensionFunction overrides.
26 ResponseAction Run() override;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateCanPasswordAccountBeManagedFunction);
30 };
31
32 class PasswordsPrivateRemoveSavedPasswordFunction :
33 public UIThreadExtensionFunction {
34 public:
35 PasswordsPrivateRemoveSavedPasswordFunction() {}
36 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.removeSavedPassword",
37 PASSWORDSPRIVATE_REMOVESAVEDPASSWORD);
38
39 protected:
40 ~PasswordsPrivateRemoveSavedPasswordFunction() override;
41
42 // ExtensionFunction overrides.
43 ResponseAction Run() override;
44
45 private:
46 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRemoveSavedPasswordFunction);
47 };
48
49 class PasswordsPrivateRemovePasswordExceptionFunction :
50 public UIThreadExtensionFunction {
51 public:
52 PasswordsPrivateRemovePasswordExceptionFunction() {}
53 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.removePasswordException",
54 PASSWORDSPRIVATE_REMOVEPASSWORDEXCEPTION);
55
56 protected:
57 ~PasswordsPrivateRemovePasswordExceptionFunction() override;
58
59 // ExtensionFunction overrides.
60 ResponseAction Run() override;
61
62 private:
63 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRemovePasswordExceptionFunction);
64 };
65
66 class PasswordsPrivateGetPlaintextPasswordFunction :
67 public UIThreadExtensionFunction {
68 public:
69 PasswordsPrivateGetPlaintextPasswordFunction() {}
70 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.GetPlaintextPassword",
71 PASSWORDSPRIVATE_GETPLAINTEXTPASSWORD);
72
73 protected:
74 ~PasswordsPrivateGetPlaintextPasswordFunction() override;
75
76 // ExtensionFunction overrides.
77 ResponseAction Run() override;
78
79 private:
80 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateGetPlaintextPasswordFunction);
81 };
82
83 } // namespace extensions
84
85 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698