Chromium Code Reviews| 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 namespace content { | |
| 11 class BrowserContext; | |
| 12 } // namespace content | |
| 13 | |
| 14 // An interface that needs to be supplied to the Proximity Auth component by its | |
| 15 // embedder. | |
| 16 class ProximityAuthClient { | |
|
Ilya Sherman
2015/04/23 20:52:53
Please ensconce this in the proximity_auth namespa
msarda
2015/04/24 15:47:06
Done.
| |
| 17 public: | |
| 18 // Returns the authenticated username for |browser_context|. | |
| 19 virtual std::string GetAuthenticatedUsername( | |
| 20 content::BrowserContext* browser_context) = 0; | |
| 21 | |
| 22 // Locks the screen for |browser_context|. | |
| 23 virtual void Lock(content::BrowserContext* browser_context) = 0; | |
| 24 }; | |
| 25 | |
| 26 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H_ | |
| OLD | NEW |