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

Side by Side Diff: remoting/host/event_executor.h

Issue 10915206: [Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to ClientSession. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/desktop_environment_factory.cc ('k') | remoting/host/event_executor_fake.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_H_ 5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_H_
6 #define REMOTING_HOST_EVENT_EXECUTOR_H_ 6 #define REMOTING_HOST_EVENT_EXECUTOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "remoting/protocol/clipboard_stub.h" 10 #include "remoting/protocol/clipboard_stub.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 // Creates a default event executor for the current platform. This 22 // Creates a default event executor for the current platform. This
23 // object should do as much work as possible on |main_task_runner|, 23 // object should do as much work as possible on |main_task_runner|,
24 // using |ui_task_runner| only for tasks actually requiring a UI 24 // using |ui_task_runner| only for tasks actually requiring a UI
25 // thread. 25 // thread.
26 static scoped_ptr<EventExecutor> Create( 26 static scoped_ptr<EventExecutor> Create(
27 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 27 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
28 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); 28 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
29 29
30 // Initialises any objects needed to execute events. 30 // Initialises any objects needed to execute events.
31 virtual void OnSessionStarted( 31 virtual void Start(
32 scoped_ptr<protocol::ClipboardStub> client_clipboard) = 0; 32 scoped_ptr<protocol::ClipboardStub> client_clipboard) = 0;
33 33
34 // Destroys any objects constructed by Start(). 34 // Destroys any objects constructed by Start() and deletes |this|.
35 virtual void OnSessionFinished() = 0; 35 virtual void StopAndDelete() = 0;
36 }; 36 };
37 37
38 } // namespace remoting 38 } // namespace remoting
39 39
40 #endif // REMOTING_HOST_EVENT_EXECUTOR_H_ 40 #endif // REMOTING_HOST_EVENT_EXECUTOR_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_environment_factory.cc ('k') | remoting/host/event_executor_fake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698