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 CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ | |
| 6 #define CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "components/keyed_service/core/keyed_service.h" | |
| 10 #include "components/proximity_auth/proximity_auth_client.h" | |
| 11 | |
| 12 class Profile; | |
| 13 | |
| 14 // A Chrome-specific implementation of the ProximityAuthClient interface. | |
| 15 // There is one |ChromeProximityAuthClient| per |Profile|. | |
| 16 class ChromeProximityAuthClient : public proximity_auth::ProximityAuthClient, | |
| 17 public KeyedService { | |
|
Tim Song
2015/06/26 23:46:43
Is there a benefit to making this ProximityAuthCli
Ilya Sherman
2015/06/27 08:18:00
Good idea! Done.
| |
| 18 public: | |
| 19 explicit ChromeProximityAuthClient(Profile* profile); | |
| 20 ~ChromeProximityAuthClient() override; | |
| 21 | |
| 22 // proximity_auth::ProximityAuthClient: | |
| 23 std::string GetAuthenticatedUsername() const override; | |
| 24 void Lock() override; | |
| 25 | |
| 26 private: | |
| 27 Profile* const profile_; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient); | |
| 30 }; | |
| 31 | |
| 32 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ | |
| OLD | NEW |