| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_WAKE_LOCK_WAKE_LOCK_CONTEXT_PROVIDER_H_ | 5 #ifndef DEVICE_WAKE_LOCK_WAKE_LOCK_CONTEXT_PROVIDER_H_ |
| 6 #define DEVICE_WAKE_LOCK_WAKE_LOCK_CONTEXT_PROVIDER_H_ | 6 #define DEVICE_WAKE_LOCK_WAKE_LOCK_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/sequenced_task_runner.h" | 8 #include "base/sequenced_task_runner.h" |
| 9 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h" | 9 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h" |
| 10 #include "device/wake_lock/public/interfaces/wake_lock_context_provider.mojom.h" | 10 #include "device/wake_lock/public/interfaces/wake_lock_context_provider.mojom.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 static void Create( | 25 static void Create( |
| 26 mojom::WakeLockContextProviderRequest request, | 26 mojom::WakeLockContextProviderRequest request, |
| 27 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, | 27 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, |
| 28 const WakeLockContextCallback& native_view_getter); | 28 const WakeLockContextCallback& native_view_getter); |
| 29 | 29 |
| 30 // mojom::WakeLockContextProvider: | 30 // mojom::WakeLockContextProvider: |
| 31 void GetWakeLockContextForID( | 31 void GetWakeLockContextForID( |
| 32 int context_id, | 32 int context_id, |
| 33 mojo::InterfaceRequest<mojom::WakeLockContext> request) override; | 33 mojo::InterfaceRequest<mojom::WakeLockContext> request) override; |
| 34 | 34 |
| 35 void GetUnassociatedWakeLockContext( |
| 36 mojo::InterfaceRequest<mojom::WakeLockContext> request) override; |
| 37 |
| 35 private: | 38 private: |
| 36 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; | 39 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; |
| 37 WakeLockContextCallback native_view_getter_; | 40 WakeLockContextCallback native_view_getter_; |
| 38 | 41 |
| 39 DISALLOW_COPY_AND_ASSIGN(WakeLockContextProvider); | 42 DISALLOW_COPY_AND_ASSIGN(WakeLockContextProvider); |
| 40 }; | 43 }; |
| 41 | 44 |
| 42 } // namespace device | 45 } // namespace device |
| 43 | 46 |
| 44 #endif // DEVICE_WAKE_LOCK_WAKE_LOCK_CONTEXT_PROVIDER_H_ | 47 #endif // DEVICE_WAKE_LOCK_WAKE_LOCK_CONTEXT_PROVIDER_H_ |
| OLD | NEW |