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

Unified Diff: remoting/host/client_session.cc

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.h ('k') | remoting/host/client_session_details.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 99c7ed509963a449f2a799cf36e044f4d7cbe00c..262343c132fc11042e63f67290f53f0d878318cc 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -425,6 +425,17 @@ void ClientSession::SetDisableInputs(bool disable_inputs) {
disable_clipboard_filter_.set_enabled(!disable_inputs);
}
+uint32_t ClientSession::desktop_session_id() const {
+ DCHECK(CalledOnValidThread());
+ DCHECK(desktop_environment_);
+ return desktop_environment_->GetDesktopSessionId();
+}
+
+ClientSessionControl* ClientSession::session_control() {
+ DCHECK(CalledOnValidThread());
+ return this;
+}
+
std::unique_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() {
DCHECK(CalledOnValidThread());
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/client_session_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698