| Index: content/browser/wake_lock/wake_lock_service_impl.h
|
| diff --git a/content/browser/wake_lock/wake_lock_service_impl.h b/content/browser/wake_lock/wake_lock_service_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0a2443d06fdcccd0035c72b4205718e969ed9466
|
| --- /dev/null
|
| +++ b/content/browser/wake_lock/wake_lock_service_impl.h
|
| @@ -0,0 +1,37 @@
|
| +// 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 CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_IMPL_H_
|
| +#define CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_IMPL_H_
|
| +
|
| +#include "base/callback.h"
|
| +#include "content/common/wake_lock_service.mojom.h"
|
| +#include "mojo/public/cpp/bindings/interface_request.h"
|
| +#include "mojo/public/cpp/bindings/strong_binding.h"
|
| +
|
| +namespace content {
|
| +
|
| +class WakeLockServiceImpl: public WakeLockService {
|
| + public:
|
| + typedef base::Callback<void(bool)> KeepScreenAwakeCallback;
|
| +
|
| + ~WakeLockServiceImpl() override;
|
| +
|
| + static void CreateService(KeepScreenAwakeCallback callback,
|
| + mojo::InterfaceRequest<WakeLockService> request);
|
| +
|
| + // WakeLockSevice
|
| + void KeepScreenAwake(bool intention) override;
|
| +
|
| + private:
|
| + WakeLockServiceImpl(KeepScreenAwakeCallback callback,
|
| + mojo::InterfaceRequest<WakeLockService> request);
|
| +
|
| + KeepScreenAwakeCallback callback_;
|
| + mojo::StrongBinding<WakeLockService> binding_;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_IMPL_H_
|
|
|