| 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_SIGNIN_EASY_UNLOCK_APP_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_APP_MANAGER_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_APP_MANAGER_H_ | 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_APP_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" |
| 13 | 14 |
| 14 namespace extensions { | 15 namespace extensions { |
| 15 class ExtensionSystem; | 16 class ExtensionSystem; |
| 16 } | 17 } |
| 17 | 18 |
| 18 // Used to manage Easy Unlock app's lifetime and to dispatch events to the app. | 19 // Used to manage Easy Unlock app's lifetime and to dispatch events to the app. |
| 19 // It's main purpose is to abstract extension system from the rest of easy | 20 // It's main purpose is to abstract extension system from the rest of easy |
| 20 // unlock code. | 21 // unlock code. |
| 21 class EasyUnlockAppManager { | 22 class EasyUnlockAppManager { |
| 22 public: | 23 public: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 48 // Sends easyUnlockPrivate.onUserInfoUpdate event to Easy Unlock app. | 49 // Sends easyUnlockPrivate.onUserInfoUpdate event to Easy Unlock app. |
| 49 virtual bool SendUserUpdatedEvent(const std::string& user_id, | 50 virtual bool SendUserUpdatedEvent(const std::string& user_id, |
| 50 bool is_logged_in, | 51 bool is_logged_in, |
| 51 bool data_ready) = 0; | 52 bool data_ready) = 0; |
| 52 | 53 |
| 53 // Sends screenlockPrivate.onAuthAttempted event to Easy Unlock app. | 54 // Sends screenlockPrivate.onAuthAttempted event to Easy Unlock app. |
| 54 virtual bool SendAuthAttemptEvent() = 0; | 55 virtual bool SendAuthAttemptEvent() = 0; |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_APP_MANAGER_H_ | 58 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_APP_MANAGER_H_ |
| OLD | NEW |