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

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

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « remoting/host/host_mock_objects.cc ('k') | remoting/host/it2me_host_user_interface.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_HOST_IT2ME_HOST_USER_INTERFACE_H_ 5 #ifndef REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_
6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ 6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // be called on the UI thread. 51 // be called on the UI thread.
52 void Shutdown(); 52 void Shutdown();
53 53
54 private: 54 private:
55 class TimerTask; 55 class TimerTask;
56 56
57 // Allow ChromotingHostTest::SetUp() to call InitFrom(). 57 // Allow ChromotingHostTest::SetUp() to call InitFrom().
58 friend class ChromotingHostTest; 58 friend class ChromotingHostTest;
59 59
60 // Used by unit-tests as an alternative to Init() so that mock versions of 60 // Used by unit-tests as an alternative to Init() so that mock versions of
61 // internal objects can be used. This takes ownership of all objects passed 61 // internal objects can be used.
62 // in. 62 void InitFrom(scoped_ptr<DisconnectWindow> disconnect_window,
63 void InitFrom(DisconnectWindow* disconnect_window, 63 scoped_ptr<ContinueWindow> continue_window,
64 ContinueWindow* continue_window, 64 scoped_ptr<LocalInputMonitor> monitor);
65 LocalInputMonitor* monitor);
66 65
67 void ProcessOnClientAuthenticated(const std::string& username); 66 void ProcessOnClientAuthenticated(const std::string& username);
68 void ProcessOnClientDisconnected(); 67 void ProcessOnClientDisconnected();
69 68
70 void MonitorLocalInputs(bool enable); 69 void MonitorLocalInputs(bool enable);
71 70
72 // Show or hide the Disconnect window on the UI thread. If |show| is false, 71 // Show or hide the Disconnect window on the UI thread. If |show| is false,
73 // hide the window, ignoring the |username| parameter. 72 // hide the window, ignoring the |username| parameter.
74 void ShowDisconnectWindow(bool show, const std::string& username); 73 void ShowDisconnectWindow(bool show, const std::string& username);
75 74
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // The JID of the currently-authenticated user (or an empty string if no user 111 // The JID of the currently-authenticated user (or an empty string if no user
113 // is connected). 112 // is connected).
114 std::string authenticated_jid_; 113 std::string authenticated_jid_;
115 114
116 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface); 115 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface);
117 }; 116 };
118 117
119 } // namespace remoting 118 } // namespace remoting
120 119
121 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ 120 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_
OLDNEW
« no previous file with comments | « remoting/host/host_mock_objects.cc ('k') | remoting/host/it2me_host_user_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698