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

Unified Diff: remoting/host/event_executor.h

Issue 10920019: [Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to ClientSession. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 8 years, 3 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.h
diff --git a/remoting/host/event_executor.h b/remoting/host/event_executor.h
index c660eb3601289c52c0adab639b78618b8faa178c..1032367346f1de96c20e0f763b5f814826d36a79 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;
alexeypa (please no reviews) 2012/09/05 22:53:30 I am going to make EventExecutor a ref-counted ob
Wez 2012/09/06 00:13:23 Let's discuss whether or not EventExecutor should
};
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698