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.
5 #ifndef REMOTING_HOST_HOST_WINDOW_H_
6 #define REMOTING_HOST_HOST_WINDOW_H_
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"
16 class ClientSessionControl
;
19 class HostWindow
: public base::NonThreadSafe
{
21 virtual ~HostWindow() {}
23 // Creates a platform-specific instance of the continue window.
24 static scoped_ptr
<HostWindow
> CreateContinueWindow(
25 const UiStrings
& ui_strings
);
27 // Creates a platform-specific instance of the disconnect window.
28 static scoped_ptr
<HostWindow
> CreateDisconnectWindow(
29 const UiStrings
& ui_strings
);
31 // Starts the UI state machine. |client_session_control| will be used to
32 // notify the caller about the local user's actions.
34 const base::WeakPtr
<ClientSessionControl
>& client_session_control
) = 0;
40 // Let |HostWindowProxy| to call DetachFromThread() when passing an instance
41 // of |HostWindow| to a different thread.
42 friend class HostWindowProxy
;
44 DISALLOW_COPY_AND_ASSIGN(HostWindow
);
47 } // namespace remoting
49 #endif // REMOTING_HOST_HOST_WINDOW_H_