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

Side by Side Diff: remoting/host/disconnect_window.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/continue_window_win.cc ('k') | remoting/host/disconnect_window_linux.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_HOST_DISCONNECT_WINDOW_H 5 #ifndef REMOTING_HOST_DISCONNECT_WINDOW_H
6 #define REMOTING_HOST_DISCONNECT_WINDOW_H 6 #define REMOTING_HOST_DISCONNECT_WINDOW_H
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h"
11
10 namespace remoting { 12 namespace remoting {
11 13
12 class ChromotingHost; 14 class ChromotingHost;
13 15
14 class DisconnectWindow { 16 class DisconnectWindow {
15 public: 17 public:
16 18
17 enum { 19 enum {
18 kMaximumConnectedNameWidthInPixels = 400 20 kMaximumConnectedNameWidthInPixels = 400
19 }; 21 };
20 22
21 virtual ~DisconnectWindow() {} 23 virtual ~DisconnectWindow() {}
22 24
23 // Show the disconnect window allowing the user to shut down |host|. 25 // Show the disconnect window allowing the user to shut down |host|.
24 virtual void Show(ChromotingHost* host, const std::string& username) = 0; 26 virtual void Show(ChromotingHost* host, const std::string& username) = 0;
25 27
26 // Hide the disconnect window. 28 // Hide the disconnect window.
27 virtual void Hide() = 0; 29 virtual void Hide() = 0;
28 30
29 static DisconnectWindow* Create(); 31 static scoped_ptr<DisconnectWindow> Create();
30 }; 32 };
31 33
32 } 34 }
33 35
34 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H 36 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H
OLDNEW
« no previous file with comments | « remoting/host/continue_window_win.cc ('k') | remoting/host/disconnect_window_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698