summaryrefslogtreecommitdiffstats
path: root/remoting/host/event_executor.h
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-06 18:30:17 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-06 18:30:17 +0000
commitbc4eefa946cdab10c17114b0a0d15962f19e27a5 (patch)
tree7ea07f81e9bc76ec234938ec2a5b529e4c539b5a /remoting/host/event_executor.h
parentb669fd10946e4330e9f6913e0260a229d7461f60 (diff)
downloadchromium_src-bc4eefa946cdab10c17114b0a0d15962f19e27a5.zip
chromium_src-bc4eefa946cdab10c17114b0a0d15962f19e27a5.tar.gz
chromium_src-bc4eefa946cdab10c17114b0a0d15962f19e27a5.tar.bz2
[Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to ClientSession.
This CL changes the way screen/audio recorders and event executors are managed. New DesktopEnvironmentFactory class is now used by ChromotingHost's owner to specify the kind of desktop environment (or virtual terminal) to be used by the host. Screen/audio recorders and event executors now owned by the ClientSession instance, so there is a separate set of recorders and stubs exists for each authenticated client session. Clients sessions can now be torn dowsn in parallel with the host shuttting down. BUG=134694 TEST=remoting_unittests Review URL: https://chromiumcodereview.appspot.com/10920019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/event_executor.h')
-rw-r--r--remoting/host/event_executor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/remoting/host/event_executor.h b/remoting/host/event_executor.h
index c660eb3..1032367 100644
--- a/remoting/host/event_executor.h
+++ b/remoting/host/event_executor.h
@@ -28,11 +28,11 @@ class EventExecutor : public protocol::ClipboardStub,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
// Initialises any objects needed to execute events.
- virtual void OnSessionStarted(
+ virtual void Start(
scoped_ptr<protocol::ClipboardStub> client_clipboard) = 0;
- // Destroys any objects constructed by Start().
- virtual void OnSessionFinished() = 0;
+ // Destroys any objects constructed by Start() and deletes |this|.
+ virtual void StopAndDelete() = 0;
};
} // namespace remoting