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

Side by Side Diff: chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h

Issue 2399423004: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_ H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_ H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_ H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_ H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 23 matching lines...) Expand all
34 SCREENLOCKPRIVATE_SETLOCKED) 34 SCREENLOCKPRIVATE_SETLOCKED)
35 ScreenlockPrivateSetLockedFunction(); 35 ScreenlockPrivateSetLockedFunction();
36 bool RunAsync() override; 36 bool RunAsync() override;
37 37
38 private: 38 private:
39 ~ScreenlockPrivateSetLockedFunction() override; 39 ~ScreenlockPrivateSetLockedFunction() override;
40 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateSetLockedFunction); 40 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateSetLockedFunction);
41 }; 41 };
42 42
43 class ScreenlockPrivateAcceptAuthAttemptFunction 43 class ScreenlockPrivateAcceptAuthAttemptFunction
44 : public ChromeSyncExtensionFunction { 44 : public UIThreadExtensionFunction {
45 public: 45 public:
46 DECLARE_EXTENSION_FUNCTION("screenlockPrivate.acceptAuthAttempt", 46 DECLARE_EXTENSION_FUNCTION("screenlockPrivate.acceptAuthAttempt",
47 SCREENLOCKPRIVATE_ACCEPTAUTHATTEMPT) 47 SCREENLOCKPRIVATE_ACCEPTAUTHATTEMPT)
48 ScreenlockPrivateAcceptAuthAttemptFunction(); 48 ScreenlockPrivateAcceptAuthAttemptFunction();
49 bool RunSync() override; 49 ResponseAction Run() override;
50 50
51 private: 51 private:
52 ~ScreenlockPrivateAcceptAuthAttemptFunction() override; 52 ~ScreenlockPrivateAcceptAuthAttemptFunction() override;
53 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateAcceptAuthAttemptFunction); 53 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateAcceptAuthAttemptFunction);
54 }; 54 };
55 55
56 class ScreenlockPrivateEventRouter 56 class ScreenlockPrivateEventRouter
57 : public BrowserContextKeyedAPI, 57 : public BrowserContextKeyedAPI,
58 public proximity_auth::ScreenlockBridge::Observer { 58 public proximity_auth::ScreenlockBridge::Observer {
59 public: 59 public:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const std::string& event_name, 91 const std::string& event_name,
92 std::unique_ptr<base::Value> arg); 92 std::unique_ptr<base::Value> arg);
93 93
94 content::BrowserContext* browser_context_; 94 content::BrowserContext* browser_context_;
95 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateEventRouter); 95 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateEventRouter);
96 }; 96 };
97 97
98 } // namespace extensions 98 } // namespace extensions
99 99
100 #endif // CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_A PI_H_ 100 #endif // CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_A PI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698