| 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 // Used to chain multiple |SessionController| instances such that they appear to |
| 18 // be a single |SessionController| instance. |
| 19 class SessionControllerList |
| 20 : public base::NonThreadSafe, |
| 21 public SessionController { |
| 22 public: |
| 23 SessionControllerList(); |
| 24 virtual ~SessionControllerList(); |
| 25 |
| 26 // Adds |controler| to the list of owner controllers. |
| 27 void AddController(scoped_ptr<SessionController> controller); |
| 28 |
| 29 // SessionController interface. |
| 30 virtual void SetScreenResolution(const ScreenResolution& resolution) OVERRIDE; |
| 31 |
| 32 private: |
| 33 // The list of session controllers owned by |this|. |
| 34 typedef std::list<SessionController*> Controllers; |
| 35 Controllers controllers_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(SessionControllerList); |
| 38 }; |
| 39 |
| 40 } // namespace remoting |
| 41 |
| 42 #endif // REMOTING_HOST_SESSION_CONTROLLER_LIST_H_ |
| OLD | NEW |