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

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: Merging with ToT 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..d92e0091f148cecb5ea8420d407e720338be5b27 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -88,7 +88,8 @@ ClientSession::ClientSession(
connection_->SetEventHandler(this);
// Create a manager for the configured extensions, if any.
- extension_manager_.reset(new HostExtensionSessionManager(extensions, this));
+ extension_manager_.reset(
+ new HostExtensionSessionManager(extensions, this, this));
#if defined(OS_WIN)
// LocalInputMonitorWin filters out an echo of the injected input before it
@@ -425,6 +426,12 @@ void ClientSession::SetDisableInputs(bool disable_inputs) {
disable_clipboard_filter_.set_enabled(!disable_inputs);
}
+uint32_t ClientSession::desktop_session_id() const {
+ DCHECK(CalledOnValidThread());
+ return desktop_environment_ ? desktop_environment_->GetDesktopSessionId()
+ : UINT32_MAX;
+}
+
std::unique_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() {
DCHECK(CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698