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

Unified Diff: components/proximity_auth/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 side-by-side diff with in-line comments
Download patch
Index: components/proximity_auth/proximity_auth_client.h
diff --git a/components/proximity_auth/proximity_auth_client.h b/components/proximity_auth/proximity_auth_client.h
index b9ad7521b6854633e05728cbd2cdaa3bb9bb2a75..ed9ab2c2b2fbc817c2b2c292ef6fba39c11ba1a7 100644
--- a/components/proximity_auth/proximity_auth_client.h
+++ b/components/proximity_auth/proximity_auth_client.h
@@ -7,31 +7,20 @@
#include <string>
-#include "base/macros.h"
-
-namespace content {
-class BrowserContext;
-} // namespace content
-
namespace proximity_auth {
// An interface that needs to be supplied to the Proximity Auth component by its
-// embedder.
+// embedder. There should be one |ProximityAuthClient| per
+// |content::BrowserContext|.
class ProximityAuthClient {
public:
- // Returns the authenticated username for |browser_context|.
- virtual std::string GetAuthenticatedUsername(
- content::BrowserContext* browser_context) const = 0;
-
- // Locks the screen for |browser_context|.
- virtual void Lock(content::BrowserContext* browser_context) = 0;
-
- protected:
- ProximityAuthClient() {}
virtual ~ProximityAuthClient() {}
- private:
- DISALLOW_COPY_AND_ASSIGN(ProximityAuthClient);
+ // Returns the authenticated username.
+ virtual std::string GetAuthenticatedUsername() const = 0;
+
+ // Locks the screen.
+ virtual void Lock() = 0;
};
} // namespace proximity_auth

Powered by Google App Engine
This is Rietveld 408576698