| Index: chrome/browser/ui/ash/lock_screen_client_chromeos.h
|
| diff --git a/chrome/browser/ui/ash/lock_screen_client_chromeos.h b/chrome/browser/ui/ash/lock_screen_client_chromeos.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e19e62d0b001b0dadac8914752ad557ced948aaa
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/ash/lock_screen_client_chromeos.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2016 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_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_
|
| +#define CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_
|
| +
|
| +#include "ash/public/interfaces/lock_screen.mojom.h"
|
| +#include "base/macros.h"
|
| +#include "mojo/public/cpp/bindings/binding.h"
|
| +
|
| +// Handles method calls delegated back to chrome from ash. Also notifies ash of
|
| +// relevant state changes in chrome.
|
| +class LockScreenClientChromeOS : public ash::mojom::LockScreenClient {
|
| + public:
|
| + LockScreenClientChromeOS();
|
| + ~LockScreenClientChromeOS() override;
|
| +
|
| + static LockScreenClientChromeOS* Get();
|
| +
|
| + // ash::mojom::LockScreenClient:
|
| + void AuthenticateUser(const AccountId& account_id,
|
| + const std::string& password,
|
| + bool authenticated_by_pin) override;
|
| +
|
| + void ShowErrorMessage();
|
| +
|
| + private:
|
| + // Lock screen mojo service in ash.
|
| + ash::mojom::LockScreenPtr lock_screen_;
|
| +
|
| + // Binds this object to the client interface.
|
| + mojo::Binding<ash::mojom::LockScreenClient> binding_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(LockScreenClientChromeOS);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_
|
|
|