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

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: Disable tests on non-ChromeOS, since there's nothing left to test on the other platforms 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
« no previous file with comments | « chrome/browser/signin/OWNERS ('k') | chrome/browser/signin/chrome_proximity_auth_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
+ 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_
« no previous file with comments | « chrome/browser/signin/OWNERS ('k') | chrome/browser/signin/chrome_proximity_auth_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698