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

Unified Diff: remoting/host/client_session.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 | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 30551ba07708ff8580db3aa02fded8e29dabbf14..ffcfa5ca91d218508322a82c06fa45a9e560844f 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -5,8 +5,8 @@
#ifndef REMOTING_HOST_CLIENT_SESSION_H_
#define REMOTING_HOST_CLIENT_SESSION_H_
-#include <stdint.h>
-
+#include <cstdint>
+#include <memory>
#include <string>
#include "base/macros.h"
@@ -17,6 +17,7 @@
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "remoting/host/client_session_control.h"
+#include "remoting/host/client_session_details.h"
#include "remoting/host/host_extension_session_manager.h"
#include "remoting/host/remote_input_filter.h"
#include "remoting/protocol/clipboard_echo_filter.h"
@@ -55,7 +56,8 @@ class ClientSession : public base::NonThreadSafe,
public protocol::HostStub,
public protocol::ConnectionToClient::EventHandler,
public protocol::VideoStream::Observer,
- public ClientSessionControl {
+ public ClientSessionControl,
+ public ClientSessionDetails {
public:
// Callback interface for passing events to the ChromotingHost.
class EventHandler {
@@ -134,6 +136,10 @@ class ClientSession : public base::NonThreadSafe,
void OnLocalMouseMoved(const webrtc::DesktopVector& position) override;
void SetDisableInputs(bool disable_inputs) override;
+ // ClientSessionDetails interface.
+ uint32_t desktop_session_id() const override;
+ ClientSessionControl* session_control() override;
+
protocol::ConnectionToClient* connection() const { return connection_.get(); }
bool is_authenticated() { return is_authenticated_; }
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698