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

Unified Diff: remoting/host/client_session_details.h

Issue 2091553002: Expose ClientSession details to Host Extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@desktop_environment
Patch Set: Adressing feedback Created 4 years, 6 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
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/host/fake_host_extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/host/fake_host_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698