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

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

Issue 1239193005: [Proximity Auth] Port the UnlockManager class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix destruction order in tests on ChromeOS Created 5 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/signin/chrome_proximity_auth_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_
6 #define CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ 6 #define CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/proximity_auth/proximity_auth_client.h" 9 #include "components/proximity_auth/proximity_auth_client.h"
10 10
11 class Profile; 11 class Profile;
12 12
13 // A Chrome-specific implementation of the ProximityAuthClient interface. 13 // A Chrome-specific implementation of the ProximityAuthClient interface.
14 // There is one |ChromeProximityAuthClient| per |Profile|. 14 // There is one |ChromeProximityAuthClient| per |Profile|.
15 class ChromeProximityAuthClient : public proximity_auth::ProximityAuthClient { 15 class ChromeProximityAuthClient : public proximity_auth::ProximityAuthClient {
16 public: 16 public:
17 explicit ChromeProximityAuthClient(Profile* profile); 17 explicit ChromeProximityAuthClient(Profile* profile);
18 ~ChromeProximityAuthClient() override; 18 ~ChromeProximityAuthClient() override;
19 19
20 // proximity_auth::ProximityAuthClient: 20 // proximity_auth::ProximityAuthClient:
21 std::string GetAuthenticatedUsername() const override; 21 std::string GetAuthenticatedUsername() const override;
22 void UpdateScreenlockState(proximity_auth::ScreenlockState state) override;
22 void FinalizeUnlock(bool success) override; 23 void FinalizeUnlock(bool success) override;
24 void FinalizeSignin(const std::string& secret) override;
23 25
24 private: 26 private:
25 Profile* const profile_; 27 Profile* const profile_;
26 28
27 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient); 29 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient);
28 }; 30 };
29 31
30 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ 32 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/chrome_proximity_auth_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698