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

Unified Diff: remoting/host/event_executor_linux.cc

Issue 10920019: [Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to ClientSession. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/event_executor_linux.cc
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index fe64ad23e446d2c9260b56c8cc66430ab1e1f46a..47c298483647638a6249ef56ab724b159538dc85 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -50,9 +50,9 @@ class EventExecutorLinux : public EventExecutor {
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
// EventExecutor interface.
- virtual void OnSessionStarted(
+ virtual void Start(
scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE;
- virtual void OnSessionFinished() OVERRIDE;
+ virtual void StopAndDelete() OVERRIDE;
private:
// |mode| is one of the AutoRepeatModeOn, AutoRepeatModeOff,
@@ -439,13 +439,13 @@ void EventExecutorLinux::InjectMouseEvent(const MouseEvent& event) {
XFlush(display_);
}
-void EventExecutorLinux::OnSessionStarted(
+void EventExecutorLinux::Start(
scoped_ptr<protocol::ClipboardStub> client_clipboard) {
return;
}
-void EventExecutorLinux::OnSessionFinished() {
- return;
+void EventExecutorLinux::StopAndDelete() {
+ delete this;
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698