OLD | NEW |
---|---|
(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_ | |
OLD | NEW |