| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |