Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Side by Side Diff: chrome/browser/signin/chrome_proximity_auth_client.h

Issue 1209193003: [Proximity Auth] Create one ProximityAuthClient per profile, rather than one global one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698