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

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

Issue 12594009: Converted LocalInputMonitor into a SessionController instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_SESSION_CONTROLLER_LIST_H_
6 #define REMOTING_HOST_SESSION_CONTROLLER_LIST_H_
7
8 #include <list>
9
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/non_thread_safe.h"
13 #include "remoting/host/session_controller.h"
14
15 namespace remoting {
16
17 class SessionControllerList
Sergey Ulanov 2013/03/20 06:31:06 Add comment to explain what this class is used for
alexeypa (please no reviews) 2013/03/20 17:05:29 Done.
18 : public base::NonThreadSafe,
19 public SessionController {
20 public:
21 SessionControllerList();
22 virtual ~SessionControllerList();
23
24 // Adds |controler| to the list of owner controllers.
25 void AddController(scoped_ptr<SessionController> controller);
26
27 // SessionController interface.
28 virtual void SetScreenResolution(const ScreenResolution& resolution) OVERRIDE;
29
30 private:
31 // The list of session controllers owned by |this|.
32 typedef std::list<SessionController*> Controllers;
33 Controllers controllers_;
34
35 DISALLOW_COPY_AND_ASSIGN(SessionControllerList);
36 };
37
38 } // namespace remoting
39
40 #endif // REMOTING_HOST_SESSION_CONTROLLER_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698