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

Unified Diff: remoting/host/event_executor_win.cc

Issue 10911248: Revert 156297 - [Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to Cl… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « remoting/host/event_executor_mac.cc ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/event_executor_win.cc
===================================================================
--- remoting/host/event_executor_win.cc (revision 156297)
+++ remoting/host/event_executor_win.cc (working copy)
@@ -44,9 +44,9 @@
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
// EventExecutor interface.
- virtual void Start(
+ virtual void OnSessionStarted(
scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE;
- virtual void StopAndDelete() OVERRIDE;
+ virtual void OnSessionFinished() OVERRIDE;
private:
void HandleKey(const KeyEvent& event);
@@ -104,12 +104,12 @@
HandleMouse(event);
}
-void EventExecutorWin::Start(
+void EventExecutorWin::OnSessionStarted(
scoped_ptr<protocol::ClipboardStub> client_clipboard) {
if (!ui_task_runner_->BelongsToCurrentThread()) {
ui_task_runner_->PostTask(
FROM_HERE,
- base::Bind(&EventExecutorWin::Start,
+ base::Bind(&EventExecutorWin::OnSessionStarted,
base::Unretained(this),
base::Passed(&client_clipboard)));
return;
@@ -118,17 +118,16 @@
clipboard_->Start(client_clipboard.Pass());
}
-void EventExecutorWin::StopAndDelete() {
+void EventExecutorWin::OnSessionFinished() {
if (!ui_task_runner_->BelongsToCurrentThread()) {
ui_task_runner_->PostTask(
FROM_HERE,
- base::Bind(&EventExecutorWin::StopAndDelete,
+ base::Bind(&EventExecutorWin::OnSessionFinished,
base::Unretained(this)));
return;
}
clipboard_->Stop();
- delete this;
}
void EventExecutorWin::HandleKey(const KeyEvent& event) {
« no previous file with comments | « remoting/host/event_executor_mac.cc ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698