Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4695)

Unified Diff: chrome/browser/chromeos/policy/remote_commands/device_command_fetch_status_job.h

Issue 2765463002: Remote fetch device status (attributes and logs) command (Closed)
Patch Set: Addressed Drew's comments, treating StatusUploader and SystemLogUploader as one Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698