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

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

Issue 13212009: Made DesktopEnvironment responsible for creation of the disconnect window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More Mac fixes. Created 7 years, 8 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 #ifndef REMOTING_HOST_HOST_WINDOW_H_
6 #define REMOTING_HOST_HOST_WINDOW_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h"
12 #include "base/threading/non_thread_safe.h"
13
14 namespace remoting {
15
16 class ClientSessionControl;
17 struct UiStrings;
18
19 class HostWindow : public base::NonThreadSafe {
20 public:
21 virtual ~HostWindow() {}
22
23 // Starts the UI state machine. |client_session_control| will be used to
24 // notify the caller about the local user's actions.
25 virtual void Start(
26 const base::WeakPtr<ClientSessionControl>& client_session_control) = 0;
27
28 // Creates a platform-specific instance of the continue window.
29 static scoped_ptr<HostWindow> CreateContinueWindow(
Sergey Ulanov 2013/04/04 00:10:03 nit: Move static methods above Start().
alexeypa (please no reviews) 2013/04/04 16:56:40 Done.
30 const UiStrings& ui_strings);
31
32 // Creates a platform-specific instance of the disconnect window.
33 static scoped_ptr<HostWindow> CreateDisconnectWindow(
34 const UiStrings& ui_strings);
35
36 protected:
37 HostWindow() {}
38
39 private:
40 // Let |HostWindowProxy| to call DetachFromThread() when passing an instance
41 // of |HostWindow| to a different thread.
42 friend class HostWindowProxy;
43
44 DISALLOW_COPY_AND_ASSIGN(HostWindow);
45 };
46
47 } // namespace remoting
48
49 #endif // REMOTING_HOST_HOST_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698