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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/session_controller_list.h
diff --git a/remoting/host/session_controller_list.h b/remoting/host/session_controller_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..c1da15004ebdb8703b05611bf63230046822678f
--- /dev/null
+++ b/remoting/host/session_controller_list.h
@@ -0,0 +1,40 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_SESSION_CONTROLLER_LIST_H_
+#define REMOTING_HOST_SESSION_CONTROLLER_LIST_H_
+
+#include <list>
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/threading/non_thread_safe.h"
+#include "remoting/host/session_controller.h"
+
+namespace remoting {
+
+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.
+ : public base::NonThreadSafe,
+ public SessionController {
+ public:
+ SessionControllerList();
+ virtual ~SessionControllerList();
+
+ // Adds |controler| to the list of owner controllers.
+ void AddController(scoped_ptr<SessionController> controller);
+
+ // SessionController interface.
+ virtual void SetScreenResolution(const ScreenResolution& resolution) OVERRIDE;
+
+ private:
+ // The list of session controllers owned by |this|.
+ typedef std::list<SessionController*> Controllers;
+ Controllers controllers_;
+
+ DISALLOW_COPY_AND_ASSIGN(SessionControllerList);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_SESSION_CONTROLLER_LIST_H_

Powered by Google App Engine
This is Rietveld 408576698