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

Unified Diff: chrome/browser/signin/easy_unlock_service_signin_chromeos.h

Issue 577683002: Introduce EasyUnlockService class for signin profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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/easy_unlock_service_signin_chromeos.h
diff --git a/chrome/browser/signin/easy_unlock_service_signin_chromeos.h b/chrome/browser/signin/easy_unlock_service_signin_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..ef2f7cfa3207e8e9cc63abca1744ed10ec8b438b
--- /dev/null
+++ b/chrome/browser/signin/easy_unlock_service_signin_chromeos.h
@@ -0,0 +1,39 @@
+// Copyright 2014 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_EASY_UNLOCK_SERVICE_SIGNIN_CHROMEOS_H_
+#define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_SIGNIN_CHROMEOS_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "chrome/browser/signin/easy_unlock_service.h"
+
+// EasyUnlockService instance that should be used for signin profile.
+class EasyUnlockServiceSignin : public EasyUnlockService {
+ public:
+ explicit EasyUnlockServiceSignin(Profile* profile);
+ virtual ~EasyUnlockServiceSignin();
+
+ private:
+ // EasyUnlockService implementation:
+ virtual EasyUnlockService::Type GetType() const OVERRIDE;
+ virtual std::string GetUserEmail() const OVERRIDE;
+ virtual void LaunchSetup() OVERRIDE;
+ virtual const base::DictionaryValue* GetPermitAccess() const OVERRIDE;
+ virtual void SetPermitAccess(const base::DictionaryValue& permit) OVERRIDE;
+ virtual void ClearPermitAccess() OVERRIDE;
+ virtual const base::ListValue* GetRemoteDevices() const OVERRIDE;
+ virtual void SetRemoteDevices(const base::ListValue& devices) OVERRIDE;
+ virtual void ClearRemoteDevices() OVERRIDE;
+ virtual void RunTurnOffFlow() OVERRIDE;
+ virtual void ResetTurnOffFlow() OVERRIDE;
+ virtual TurnOffFlowStatus GetTurnOffFlowStatus() const OVERRIDE;
+ virtual bool IsAllowedInternal() OVERRIDE;
+ virtual void InitializeInternal() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceSignin);
+};
+
+#endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_SIGNIN_CHROMEOS_H_
« no previous file with comments | « chrome/browser/signin/easy_unlock_service_regular.cc ('k') | chrome/browser/signin/easy_unlock_service_signin_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698