Initial RemoteCommandService
commitefa8017cfd57b38d0126e994a5e29aba7fbf98e8
authorbinjin <binjin@chromium.org>
Wed, 18 Mar 2015 10:53:20 +0000 (18 03:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 18 Mar 2015 10:53:57 +0000 (18 10:53 +0000)
treed30670c7c6b5e6165c5fe3097a9cd7dff9c3aa99
parentaf05a02a821e30f72e7497a633da4f8c1dec4737
Initial RemoteCommandService

This CL adds initial implementation of RemoteCommandService. RemoteCommandService contains a RemoteCommandsQueue and will interacts with DMServer to fetch and run commands in sequence. Protocol modification is made to protobuf as well.

BUG=None

Review URL: https://codereview.chromium.org/879233003

Cr-Commit-Position: refs/heads/master@{#321103}
27 files changed:
base/test/test_mock_time_task_runner.cc
base/test/test_mock_time_task_runner.h
components/components_tests.gyp
components/policy.gypi
components/policy/BUILD.gn
components/policy/core/common/BUILD.gn
components/policy/core/common/cloud/cloud_policy_client.cc
components/policy/core/common/cloud/cloud_policy_client.h
components/policy/core/common/cloud/cloud_policy_client_unittest.cc
components/policy/core/common/cloud/cloud_policy_constants.cc
components/policy/core/common/cloud/cloud_policy_constants.h
components/policy/core/common/cloud/cloud_policy_core.cc
components/policy/core/common/cloud/cloud_policy_core.h
components/policy/core/common/cloud/device_management_service.cc
components/policy/core/common/cloud/device_management_service.h
components/policy/core/common/cloud/mock_cloud_policy_client.h
components/policy/core/common/remote_commands/remote_commands_factory.cc [new file with mode: 0644]
components/policy/core/common/remote_commands/remote_commands_factory.h [new file with mode: 0644]
components/policy/core/common/remote_commands/remote_commands_queue.cc
components/policy/core/common/remote_commands/remote_commands_queue.h
components/policy/core/common/remote_commands/remote_commands_service.cc [new file with mode: 0644]
components/policy/core/common/remote_commands/remote_commands_service.h [new file with mode: 0644]
components/policy/core/common/remote_commands/remote_commands_service_unittest.cc [new file with mode: 0644]
components/policy/core/common/remote_commands/testing_remote_commands_server.cc [new file with mode: 0644]
components/policy/core/common/remote_commands/testing_remote_commands_server.h [new file with mode: 0644]
components/policy/policy_common.gypi
components/policy/proto/device_management_backend.proto