OLD | NEW |
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" |
11 #include "chrome/browser/extensions/api/passwords_private/passwords_private_dele
gate.h" | 11 #include "chrome/browser/extensions/api/passwords_private/passwords_private_dele
gate.h" |
12 #include "chrome/browser/ui/passwords/password_manager_presenter.h" | 12 #include "chrome/browser/ui/passwords/password_manager_presenter.h" |
13 #include "extensions/browser/extension_function.h" | 13 #include "extensions/browser/extension_function.h" |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 | 16 |
17 class PasswordsPrivateCanPasswordAccountBeManagedFunction : | |
18 public UIThreadExtensionFunction { | |
19 public: | |
20 PasswordsPrivateCanPasswordAccountBeManagedFunction() {} | |
21 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.canPasswordAccountBeManaged", | |
22 PASSWORDSPRIVATE_CANPASSWORDACCOUNTBEMANAGED); | |
23 | |
24 protected: | |
25 ~PasswordsPrivateCanPasswordAccountBeManagedFunction() override; | |
26 | |
27 // ExtensionFunction overrides. | |
28 ResponseAction Run() override; | |
29 | |
30 private: | |
31 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateCanPasswordAccountBeManagedFunction); | |
32 }; | |
33 | |
34 class PasswordsPrivateRemoveSavedPasswordFunction : | 17 class PasswordsPrivateRemoveSavedPasswordFunction : |
35 public UIThreadExtensionFunction { | 18 public UIThreadExtensionFunction { |
36 public: | 19 public: |
37 PasswordsPrivateRemoveSavedPasswordFunction() {} | 20 PasswordsPrivateRemoveSavedPasswordFunction() {} |
38 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.removeSavedPassword", | 21 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.removeSavedPassword", |
39 PASSWORDSPRIVATE_REMOVESAVEDPASSWORD); | 22 PASSWORDSPRIVATE_REMOVESAVEDPASSWORD); |
40 | 23 |
41 protected: | 24 protected: |
42 ~PasswordsPrivateRemoveSavedPasswordFunction() override; | 25 ~PasswordsPrivateRemoveSavedPasswordFunction() override; |
43 | 26 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // ExtensionFunction overrides. | 61 // ExtensionFunction overrides. |
79 ResponseAction Run() override; | 62 ResponseAction Run() override; |
80 | 63 |
81 private: | 64 private: |
82 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRequestPlaintextPasswordFunction); | 65 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRequestPlaintextPasswordFunction); |
83 }; | 66 }; |
84 | 67 |
85 } // namespace extensions | 68 } // namespace extensions |
86 | 69 |
87 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API
_H_ | 70 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API
_H_ |
OLD | NEW |