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

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: Minor fixup 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
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 99c7ed509963a449f2a799cf36e044f4d7cbe00c..76afb9f3be45d8220d7dc83343485bccdb0fb3b8 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);
}
+ClientSessionControl* ClientSession::session_control() {
+ DCHECK(CalledOnValidThread());
+ return this;
+}
+
+uint32_t ClientSession::desktop_session_id() const {
+ DCHECK(CalledOnValidThread());
+ return desktop_environment_ ? desktop_environment_->GetDesktopSessionId()
Sergey Ulanov 2016/06/27 19:51:30 nit: maybe allow this function to be called only w
joedow 2016/06/27 21:07:27 Done.
+ : UINT32_MAX;
+}
+
std::unique_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() {
DCHECK(CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698