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

Unified Diff: remoting/host/desktop_session_agent.h

Issue 12087073: Pass a DesktopEnvironmentFactory when creating DesktopProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not create the audio capturer if audio is not supported Created 7 years, 11 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/desktop_session_agent.h
diff --git a/remoting/host/desktop_session_agent.h b/remoting/host/desktop_session_agent.h
index 0145cb67a1f31ff0ad8c61085737a2492cf2e4de..585f15990b27396e53e2b6f07962bfaa1a1180b4 100644
--- a/remoting/host/desktop_session_agent.h
+++ b/remoting/host/desktop_session_agent.h
@@ -33,6 +33,7 @@ namespace remoting {
class AudioCapturer;
class AudioPacket;
class AutoThreadTaskRunner;
+class DesktopEnvironmentFactory;
class DisconnectWindow;
class EventExecutor;
class LocalInputMonitor;
@@ -54,12 +55,12 @@ class DesktopSessionAgent
public:
virtual ~Delegate();
+ // Returns an instance of desktop environment factory used.
+ virtual DesktopEnvironmentFactory& GetDesktopEnvironmentFactory() = 0;
Wez 2013/02/01 01:02:11 nit: This could be desktop_environment_factory(),
alexeypa (please no reviews) 2013/02/01 17:28:43 Done.
+
// Notifies the delegate that the network-to-desktop channel has been
// disconnected.
virtual void OnNetworkProcessDisconnected() = 0;
-
- // Request the delegate to inject Secure Attention Sequence.
- virtual void InjectSas() = 0;
};
static scoped_refptr<DesktopSessionAgent> Create(
@@ -120,9 +121,6 @@ class DesktopSessionAgent
IPC::PlatformFileForTransit* client_out,
scoped_ptr<IPC::ChannelProxy>* server_out) = 0;
- // Creates an event executor specific to the platform.
- virtual scoped_ptr<EventExecutor> CreateEventExecutor() = 0;
-
// Handles StartSessionAgent request from the client.
void OnStartSessionAgent(const std::string& authenticated_jid);

Powered by Google App Engine
This is Rietveld 408576698