OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/setup/win/host_configurer_window.h" | 5 #include "remoting/host/setup/win/host_configurer_window.h" |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlstr.h> | 8 #include <atlstr.h> |
9 #include <atlwin.h> | 9 #include <atlwin.h> |
10 #include <windows.h> | 10 #include <windows.h> |
11 | 11 |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "remoting/host/setup/win/load_string_from_resource.h" | 14 #include "remoting/host/setup/win/load_string_from_resource.h" |
15 #include "remoting/host/setup/win/start_host_window.h" | 15 #include "remoting/host/setup/win/start_host_window.h" |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 | 18 |
19 HostConfigurerWindow::HostConfigurerWindow( | 19 HostConfigurerWindow::HostConfigurerWindow( |
20 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, | 20 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, |
21 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 21 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
22 base::Closure on_destroy) | 22 base::Closure on_destroy) |
23 : url_request_context_getter_(url_request_context_getter), | 23 : url_request_context_getter_(url_request_context_getter), |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 114 } |
115 | 115 |
116 void HostConfigurerWindow::Finish() { | 116 void HostConfigurerWindow::Finish() { |
117 DCHECK(ui_task_runner_->BelongsToCurrentThread()); | 117 DCHECK(ui_task_runner_->BelongsToCurrentThread()); |
118 | 118 |
119 DestroyWindow(); | 119 DestroyWindow(); |
120 on_destroy_.Run(); | 120 on_destroy_.Run(); |
121 } | 121 } |
122 | 122 |
123 } // namespace remoting | 123 } // namespace remoting |
OLD | NEW |