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

Side by Side 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: Add callback 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 protected: 58 protected:
59 ~PasswordsPrivateRequestPlaintextPasswordFunction() override; 59 ~PasswordsPrivateRequestPlaintextPasswordFunction() override;
60 60
61 // ExtensionFunction overrides. 61 // ExtensionFunction overrides.
62 ResponseAction Run() override; 62 ResponseAction Run() override;
63 63
64 private: 64 private:
65 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRequestPlaintextPasswordFunction); 65 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRequestPlaintextPasswordFunction);
66 }; 66 };
67 67
68 class PasswordsPrivateRequestSavedPasswordListFunction
69 : public UIThreadExtensionFunction {
70 public:
71 PasswordsPrivateRequestSavedPasswordListFunction() {}
72 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.requestSavedPasswordList",
73 PASSWORDSPRIVATE_REQUESTSAVEDPASSWORDLIST);
74
75 protected:
76 ~PasswordsPrivateRequestSavedPasswordListFunction() override;
77
78 // ExtensionFunction overrides.
79 ResponseAction Run() override;
80
81 private:
82 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRequestSavedPasswordListFunction);
83 };
84
85 class PasswordsPrivateRequestPasswordExceptionListFunction
86 : public UIThreadExtensionFunction {
87 public:
88 PasswordsPrivateRequestPasswordExceptionListFunction() {}
89 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.requestPasswordExceptionList",
90 PASSWORDSPRIVATE_REQUESTPASSWORDEXCEPTIONLIST);
91
92 protected:
93 ~PasswordsPrivateRequestPasswordExceptionListFunction() override;
94
95 // ExtensionFunction overrides.
96 ResponseAction Run() override;
97
98 private:
99 DISALLOW_COPY_AND_ASSIGN(
100 PasswordsPrivateRequestPasswordExceptionListFunction);
101 };
102
68 } // namespace extensions 103 } // namespace extensions
69 104
70 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API _H_ 105 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698