OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "chrome/browser/chromeos/policy/remote_commands/device_commands_factory
_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/remote_commands/device_commands_factory
_chromeos.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
| 11 #include "chrome/browser/chromeos/policy/remote_commands/device_command_fetch_st
atus_job.h" |
11 #include "chrome/browser/chromeos/policy/remote_commands/device_command_reboot_j
ob.h" | 12 #include "chrome/browser/chromeos/policy/remote_commands/device_command_reboot_j
ob.h" |
12 #include "chrome/browser/chromeos/policy/remote_commands/device_command_screensh
ot_job.h" | 13 #include "chrome/browser/chromeos/policy/remote_commands/device_command_screensh
ot_job.h" |
13 #include "chrome/browser/chromeos/policy/remote_commands/device_command_set_volu
me_job.h" | 14 #include "chrome/browser/chromeos/policy/remote_commands/device_command_set_volu
me_job.h" |
14 #include "chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.h" | 15 #include "chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.h" |
15 #include "chromeos/dbus/dbus_thread_manager.h" | 16 #include "chromeos/dbus/dbus_thread_manager.h" |
16 #include "components/policy/core/common/remote_commands/remote_command_job.h" | 17 #include "components/policy/core/common/remote_commands/remote_command_job.h" |
17 #include "components/policy/proto/device_management_backend.pb.h" | 18 #include "components/policy/proto/device_management_backend.pb.h" |
18 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
19 | 20 |
20 namespace em = enterprise_management; | 21 namespace em = enterprise_management; |
(...skipping 14 matching lines...) Expand all Loading... |
35 chromeos::DBusThreadManager::Get()->GetPowerManagerClient())); | 36 chromeos::DBusThreadManager::Get()->GetPowerManagerClient())); |
36 case em::RemoteCommand_Type_DEVICE_SCREENSHOT: | 37 case em::RemoteCommand_Type_DEVICE_SCREENSHOT: |
37 return base::WrapUnique<RemoteCommandJob>( | 38 return base::WrapUnique<RemoteCommandJob>( |
38 new DeviceCommandScreenshotJob(base::MakeUnique<ScreenshotDelegate>( | 39 new DeviceCommandScreenshotJob(base::MakeUnique<ScreenshotDelegate>( |
39 content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( | 40 content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( |
40 content::BrowserThread::GetBlockingPool() | 41 content::BrowserThread::GetBlockingPool() |
41 ->GetSequenceToken())))); | 42 ->GetSequenceToken())))); |
42 case em::RemoteCommand_Type_DEVICE_SET_VOLUME: | 43 case em::RemoteCommand_Type_DEVICE_SET_VOLUME: |
43 return base::WrapUnique<RemoteCommandJob>( | 44 return base::WrapUnique<RemoteCommandJob>( |
44 new DeviceCommandSetVolumeJob()); | 45 new DeviceCommandSetVolumeJob()); |
| 46 case em::RemoteCommand_Type_DEVICE_FETCH_STATUS: |
| 47 return base::WrapUnique<RemoteCommandJob>( |
| 48 new DeviceCommandFetchStatusJob()); |
45 default: | 49 default: |
46 return nullptr; | 50 return nullptr; |
47 } | 51 } |
48 } | 52 } |
49 | 53 |
50 } // namespace policy | 54 } // namespace policy |
OLD | NEW |