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

Side by Side Diff: chrome/browser/extensions/api/passwords_private/passwords_private_api.h

Issue 1405643004: Remove passwordsPrivate.canPasswordAccountBeManaged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@480552_clean-up-PasswordLinkInSettings
Patch Set: Fixed histograms Created 5 years, 2 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"
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
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_
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