OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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_IT2ME_IT2ME_CONFIRMATION_DIALOG_H_ | |
6 #define REMOTING_HOST_IT2ME_IT2ME_CONFIRMATION_DIALOG_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/callback_forward.h" | |
10 #include "base/memory/ref_counted.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "base/single_thread_task_runner.h" | |
13 | |
14 namespace remoting { | |
15 | |
16 class It2MeConfirmationDialog { | |
17 public: | |
18 enum class Result { | |
Sergey Ulanov
2014/12/19 03:16:19
maybe just use bool? we are unlikely to add other
dcaiafa
2014/12/20 00:22:00
I generally dislike boolean parameters (i.e. Repor
| |
19 OK, | |
20 CANCEL | |
21 }; | |
22 | |
23 typedef base::Callback<void(Result)> ResultCallback; | |
24 | |
25 virtual ~It2MeConfirmationDialog(); | |
Sergey Ulanov
2014/12/19 03:16:19
inline distructor for virtual interfaces.
dcaiafa
2014/12/20 00:22:00
Done.
| |
26 | |
27 virtual void Show(const ResultCallback& callback) = 0; | |
28 }; | |
29 | |
30 class It2MeConfirmationDialogFactory { | |
31 public: | |
32 It2MeConfirmationDialogFactory(); | |
33 virtual ~It2MeConfirmationDialogFactory(); | |
34 | |
35 virtual scoped_ptr<It2MeConfirmationDialog> Create(); | |
36 }; | |
37 | |
38 } // namespace remoting | |
39 | |
40 #endif // REMOTING_HOST_IT2ME_IT2ME_CONFIRMATION_DIALOG_H_ | |
OLD | NEW |