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

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

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 #include "remoting/host/session_controller_list.h"
6
7 #include "base/logging.h"
8 #include "base/stl_util.h"
9
10 namespace remoting {
11
12 SessionControllerList::SessionControllerList() {
13 }
14
15 SessionControllerList::~SessionControllerList() {
16 STLDeleteContainerPointers(controllers_.begin(), controllers_.end());
17 }
18
19 void SessionControllerList::AddController(
20 scoped_ptr<SessionController> controller) {
21 DCHECK(CalledOnValidThread());
22
23 controllers_.push_back(controller.release());
24 }
25
26 void SessionControllerList::SetScreenResolution(
27 const ScreenResolution& resolution) {
28 DCHECK(CalledOnValidThread());
29
30 // Pass |resolution| to every owner session controller.
31 Controllers::iterator i = controllers_.begin();
32 while (i != controllers_.end()) {
33 (*i)->SetScreenResolution(resolution);
34 ++i;
35 }
36 }
37
38 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698