blob: fa1ae2588fbfcf96463843717d7ffadd4e25f9e0 (
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
|
// 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 {
struct UiStrings;
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(const ContinueSessionCallback& callback) = 0;
// Hide the continuation window if it is visible.
virtual void Hide() = 0;
static scoped_ptr<ContinueWindow> Create(const UiStrings* ui_strings);
};
} // namespace remoting
#endif // REMOTING_HOST_CONTINUE_WINDOW_H_
|