blob: 98e534706b7c179740851d8ba05f7ac903c22a92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_CONTINUE_WINDOW_H_
#define REMOTING_HOST_CONTINUE_WINDOW_H_
#include "base/callback.h"
namespace remoting {
class ChromotingHost;
class ContinueWindow {
public:
// ContinueSessionCallback is called when the user clicks on the
// Continue button to resume the session, or dismisses the window to
// terminate the session. This callback is provided as a parameter to the
// Show() method, and will be triggered on the UI thread.
typedef base::Callback<void(bool)> ContinueSessionCallback;
virtual ~ContinueWindow() {}
// Show the continuation window requesting that the user approve continuing
// the session.
virtual void Show(ChromotingHost* host,
const ContinueSessionCallback& callback) = 0;
// Hide the continuation window if it is visible.
virtual void Hide() = 0;
static scoped_ptr<ContinueWindow> Create();
};
} // namespace remoting
#endif // REMOTING_HOST_CONTINUE_WINDOW_H_
|