[Proximity Auth] Create one ProximityAuthClient per profile, rather than one global...
[chromium-blink-merge.git] / chrome / browser / signin / chrome_proximity_auth_client.h
blob72748204ed54e877b630fe9b85f9c43c5fe8961b
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.
5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_
6 #define CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_
8 #include "base/macros.h"
9 #include "components/proximity_auth/proximity_auth_client.h"
11 class Profile;
13 // A Chrome-specific implementation of the ProximityAuthClient interface.
14 // There is one |ChromeProximityAuthClient| per |Profile|.
15 class ChromeProximityAuthClient : public proximity_auth::ProximityAuthClient {
16 public:
17 explicit ChromeProximityAuthClient(Profile* profile);
18 ~ChromeProximityAuthClient() override;
20 // proximity_auth::ProximityAuthClient:
21 std::string GetAuthenticatedUsername() const override;
23 private:
24 Profile* const profile_;
26 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient);
29 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_