OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_CHROMEOS_MESSAGE_BOX_H_ | 5 #ifndef REMOTING_HOST_CHROMEOS_MESSAGE_BOX_H_ |
6 #define REMOTING_HOST_CHROMEOS_MESSAGE_BOX_H_ | 6 #define REMOTING_HOST_CHROMEOS_MESSAGE_BOX_H_ |
7 | 7 |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/macros.h" |
9 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
10 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
11 | 12 |
12 namespace remoting { | 13 namespace remoting { |
13 | 14 |
14 // Overview: | 15 // Overview: |
15 // Shows a system modal message box with OK and cancel buttons. This class | 16 // Shows a system modal message box with OK and cancel buttons. This class |
16 // is not thread-safe, it must be called on the UI thread of the browser | 17 // is not thread-safe, it must be called on the UI thread of the browser |
17 // process. | 18 // process. |
18 class MessageBox { | 19 class MessageBox { |
(...skipping 21 matching lines...) Expand all Loading... |
40 class Core; | 41 class Core; |
41 Core* core_; | 42 Core* core_; |
42 base::ThreadChecker thread_checker_; | 43 base::ThreadChecker thread_checker_; |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(MessageBox); | 45 DISALLOW_COPY_AND_ASSIGN(MessageBox); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace remoting | 48 } // namespace remoting |
48 | 49 |
49 #endif // REMOTING_HOST_CHROMEOS_MESSAGE_BOX_H_ | 50 #endif // REMOTING_HOST_CHROMEOS_MESSAGE_BOX_H_ |
OLD | NEW |