Index: remoting/host/client_session_details.h |
diff --git a/remoting/host/client_session_details.h b/remoting/host/client_session_details.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..83b6aa46b06804d20d3fe4b83c139df7b7f834b6 |
--- /dev/null |
+++ b/remoting/host/client_session_details.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2016 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 REMOTING_HOST_CLIENT_SESSION_DETAILS_H_ |
+#define REMOTING_HOST_CLIENT_SESSION_DETAILS_H_ |
+ |
+#include <cstdint> |
+ |
+namespace remoting { |
+ |
+class ClientSessionControl; |
+ |
+// Provides ClientSession control and state information to HostExtensions. |
+class ClientSessionDetails { |
+ public: |
+ virtual ~ClientSessionDetails() {} |
+ |
+ // Returns a ClientSessionControl interface pointer used to interact with the |
+ // current session. |
+ virtual ClientSessionControl* session_control() = 0; |
+ |
+ // Returns the id of the current desktop session being remoted. If no session |
+ // exists, UINT32_MAX is returned. |
+ // Note: The return value should never be cached as it can change. |
+ virtual uint32_t desktop_session_id() const = 0; |
+}; |
+ |
+} // namespace remoting |
+ |
+#endif // REMOTING_HOST_CLIENT_SESSION_DETAILS_H_ |