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

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

Issue 7669045: Make ChromotingHost::ui_strings() immutable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CHROMOTING_HOST_H_ 5 #ifndef REMOTING_CHROMOTING_HOST_H_
6 #define REMOTING_CHROMOTING_HOST_H_ 6 #define REMOTING_CHROMOTING_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 // Notify all active client sessions that local input has been detected, and 140 // Notify all active client sessions that local input has been detected, and
141 // that remote input should be ignored for a short time. 141 // that remote input should be ignored for a short time.
142 void LocalMouseMoved(const gfx::Point& new_pos); 142 void LocalMouseMoved(const gfx::Point& new_pos);
143 143
144 // Pause or unpause the session. While the session is paused, remote input 144 // Pause or unpause the session. While the session is paused, remote input
145 // is ignored. 145 // is ignored.
146 void PauseSession(bool pause); 146 void PauseSession(bool pause);
147 147
148 UiStrings* ui_strings() { return &ui_strings_; } 148 const UiStrings& ui_strings() { return ui_strings_; }
149
150 // Set localized strings. Must be called before host is started.
151 void SetUiStrings(const UiStrings& ui_strings);
149 152
150 private: 153 private:
151 friend class base::RefCountedThreadSafe<ChromotingHost>; 154 friend class base::RefCountedThreadSafe<ChromotingHost>;
152 friend class ChromotingHostTest; 155 friend class ChromotingHostTest;
153 156
154 typedef std::vector<HostStatusObserver*> StatusObserverList; 157 typedef std::vector<HostStatusObserver*> StatusObserverList;
155 typedef std::vector<scoped_refptr<ClientSession> > ClientList; 158 typedef std::vector<scoped_refptr<ClientSession> > ClientList;
156 159
157 enum State { 160 enum State {
158 kInitial, 161 kInitial,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 std::vector<Task*> shutdown_tasks_; 246 std::vector<Task*> shutdown_tasks_;
244 247
245 UiStrings ui_strings_; 248 UiStrings ui_strings_;
246 249
247 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 250 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
248 }; 251 };
249 252
250 } // namespace remoting 253 } // namespace remoting
251 254
252 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 255 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698