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

Unified 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: Clean up screenlock_private_api.cc a bit 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/signin/chrome_proximity_auth_client.h
diff --git a/chrome/browser/signin/chrome_proximity_auth_client.h b/chrome/browser/signin/chrome_proximity_auth_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..72748204ed54e877b630fe9b85f9c43c5fe8961b
--- /dev/null
+++ b/chrome/browser/signin/chrome_proximity_auth_client.h
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_
+#define CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_
+
+#include "base/macros.h"
+#include "components/proximity_auth/proximity_auth_client.h"
+
+class Profile;
+
+// A Chrome-specific implementation of the ProximityAuthClient interface.
+// There is one |ChromeProximityAuthClient| per |Profile|.
+class ChromeProximityAuthClient : public proximity_auth::ProximityAuthClient {
Mike Lerman 2015/06/29 13:41:28 This class really just provides one small function
Ilya Sherman 2015/06/29 18:03:38 I'm about to add more code to this class in a foll
+ public:
+ explicit ChromeProximityAuthClient(Profile* profile);
+ ~ChromeProximityAuthClient() override;
+
+ // proximity_auth::ProximityAuthClient:
+ std::string GetAuthenticatedUsername() const override;
+
+ private:
+ Profile* const profile_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient);
+};
+
+#endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698