Index: chrome/browser/chromeos/policy/remote_commands/device_command_fetch_status_job.h |
diff --git a/chrome/browser/chromeos/policy/remote_commands/device_command_fetch_status_job.h b/chrome/browser/chromeos/policy/remote_commands/device_command_fetch_status_job.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6bcea0fbd939bbbfd2b99f8d486b2a4303e9bcc1 |
--- /dev/null |
+++ b/chrome/browser/chromeos/policy/remote_commands/device_command_fetch_status_job.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2017 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_CHROMEOS_POLICY_REMOTE_COMMANDS_DEVICE_COMMAND_FETCH_STATUS_JOB_H_ |
+#define CHROME_BROWSER_CHROMEOS_POLICY_REMOTE_COMMANDS_DEVICE_COMMAND_FETCH_STATUS_JOB_H_ |
+ |
+#include <string> |
+ |
+#include "base/macros.h" |
+#include "components/policy/core/common/remote_commands/remote_command_job.h" |
+ |
+namespace policy { |
+ |
+class DeviceCommandFetchStatusJob : public RemoteCommandJob { |
+ public: |
+ DeviceCommandFetchStatusJob(); |
+ ~DeviceCommandFetchStatusJob() override; |
+ |
+ // RemoteCommandJob: |
+ enterprise_management::RemoteCommand_Type GetType() const override; |
+ base::TimeDelta GetCommmandTimeout() const override; |
+ |
+ protected: |
+ // RemoteCommandJob: |
+ bool IsExpired(base::TimeTicks now) override; |
+ void RunImpl(const CallbackWithResult& succeeded_callback, |
+ const CallbackWithResult& failed_callback) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(DeviceCommandFetchStatusJob); |
+}; |
+ |
+} // namespace policy |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_POLICY_REMOTE_COMMANDS_DEVICE_COMMAND_FETCH_STATUS_JOB_H_ |