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 #include "remoting/host/it2me/it2me_confirmation_dialog_proxy.h" | 5 #include "remoting/host/it2me/it2me_confirmation_dialog_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" |
10 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
11 | 12 |
12 namespace remoting { | 13 namespace remoting { |
13 | 14 |
14 class It2MeConfirmationDialogProxy::Core { | 15 class It2MeConfirmationDialogProxy::Core { |
15 public: | 16 public: |
16 Core(scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 17 Core(scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
17 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 18 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
18 base::WeakPtr<It2MeConfirmationDialogProxy> parent, | 19 base::WeakPtr<It2MeConfirmationDialogProxy> parent, |
19 scoped_ptr<It2MeConfirmationDialog> dialog); | 20 scoped_ptr<It2MeConfirmationDialog> dialog); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 base::Unretained(core_.get()))); | 98 base::Unretained(core_.get()))); |
98 } | 99 } |
99 | 100 |
100 void It2MeConfirmationDialogProxy::ReportResult( | 101 void It2MeConfirmationDialogProxy::ReportResult( |
101 It2MeConfirmationDialog::Result result) { | 102 It2MeConfirmationDialog::Result result) { |
102 DCHECK(core_->caller_task_runner()->BelongsToCurrentThread()); | 103 DCHECK(core_->caller_task_runner()->BelongsToCurrentThread()); |
103 base::ResetAndReturn(&callback_).Run(result); | 104 base::ResetAndReturn(&callback_).Run(result); |
104 } | 105 } |
105 | 106 |
106 } // namespace remoting | 107 } // namespace remoting |
OLD | NEW |