Index: chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h |
diff --git a/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h b/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h |
index 819ca33c472958c9b9e2e518cdcb786cace2fb01..5893bc9b5ed0a3c8614cacc4b6b1d7b3d5624a0f 100644 |
--- a/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h |
+++ b/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h |
@@ -62,6 +62,12 @@ class DeviceCommandScreenshotJob : public RemoteCommandJob, |
public: |
virtual ~Delegate() {} |
+ // Returns true if screenshots are allowed in this session. Returns false |
+ // if the current session is not an auto-launched kiosk session, or there |
+ // have been certain types of user input that may result in leaking private |
+ // information. |
+ virtual bool IsScreenshotAllowed() = 0; |
+ |
// Acquires a snapshot of |source_rect| in |window| and invokes |callback| |
// with the PNG data. The passed-in callback will not be invoked after the |
// delegate has been destroyed. See e.g. ScreenshotDelegate. |