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

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: nits 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/passwords_private/passwords_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PasswordsPrivateGetSavedPasswordListFunction
69 : public UIThreadExtensionFunction {
70 public:
71 PasswordsPrivateGetSavedPasswordListFunction() {}
72 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.getSavedPasswordList",
73 PASSWORDSPRIVATE_GETSAVEDPASSWORDLIST);
74
75 protected:
76 ~PasswordsPrivateGetSavedPasswordListFunction() override;
77
78 // ExtensionFunction overrides.
79 ResponseAction Run() override;
80
81 private:
82 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateGetSavedPasswordListFunction);
83 };
84
85 class PasswordsPrivateGetPasswordExceptionListFunction
86 : public UIThreadExtensionFunction {
87 public:
88 PasswordsPrivateGetPasswordExceptionListFunction() {}
89 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.getPasswordExceptionList",
90 PASSWORDSPRIVATE_GETPASSWORDEXCEPTIONLIST);
91
92 protected:
93 ~PasswordsPrivateGetPasswordExceptionListFunction() override;
94
95 // ExtensionFunction overrides.
96 ResponseAction Run() override;
97
98 private:
99 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateGetPasswordExceptionListFunction);
100 };
101
68 } // namespace extensions 102 } // namespace extensions
69 103
70 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API _H_ 104 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API _H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/passwords_private/passwords_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698