OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_PROXIMITY_AUTH_CLIENT_H_ |
| 6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 |
| 12 namespace content { |
| 13 class BrowserContext; |
| 14 } // namespace content |
| 15 |
| 16 namespace proximity_auth { |
| 17 |
| 18 // An interface that needs to be supplied to the Proximity Auth component by its |
| 19 // embedder. |
| 20 class ProximityAuthClient { |
| 21 public: |
| 22 // Returns the authenticated username for |browser_context|. |
| 23 virtual std::string GetAuthenticatedUsername( |
| 24 content::BrowserContext* browser_context) = 0; |
| 25 |
| 26 // Locks the screen for |browser_context|. |
| 27 virtual void Lock(content::BrowserContext* browser_context) = 0; |
| 28 |
| 29 protected: |
| 30 ProximityAuthClient() {} |
| 31 virtual ~ProximityAuthClient() {} |
| 32 |
| 33 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(ProximityAuthClient); |
| 35 }; |
| 36 |
| 37 } // namespace proximity_auth |
| 38 |
| 39 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H_ |
OLD | NEW |