OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 #include "remoting/client/ios/app_runtime.h" | |
6 | |
7 #include "base/bind.h" | |
8 #include "base/bind_helpers.h" | |
9 #include "base/logging.h" | |
10 #include "base/memory/ptr_util.h" | |
11 #include "base/synchronization/waitable_event.h" | |
12 #include "jingle/glue/thread_wrapper.h" | |
13 #include "net/socket/client_socket_factory.h" | |
14 #include "remoting/base/chromium_url_request.h" | |
15 #include "remoting/base/url_request_context_getter.h" | |
16 #include "remoting/client/audio_player.h" | |
17 #include "remoting/client/client_status_logger.h" | |
18 #include "remoting/client/ios/bridge/client_proxy.h" | |
19 #include "remoting/proto/event.pb.h" | |
20 #include "remoting/protocol/chromium_port_allocator_factory.h" | |
21 #include "remoting/protocol/client_authentication_config.h" | |
22 #include "remoting/protocol/host_stub.h" | |
23 #include "remoting/protocol/negotiating_client_authenticator.h" | |
24 #include "remoting/protocol/transport_context.h" | |
25 #include "remoting/signaling/delegating_signal_strategy.h" | |
26 | |
27 namespace remoting { | |
28 namespace ios { | |
29 | |
30 AppRuntime::AppRuntime() { | |
31 if (!base::MessageLoop::current()) { | |
32 VLOG(1) << "Starting main message loop"; | |
33 ui_loop_.reset(new base::MessageLoopForUI()); | |
34 base::MessageLoopForUI::current()->Attach(); | |
35 } else { | |
36 VLOG(1) << "Using existing main message loop"; | |
37 ui_loop_.reset(base::MessageLoopForUI::current()); | |
38 } | |
39 | |
40 runtime_ = ChromotingClientRuntime::Create(ui_loop_.get()); | |
41 } | |
42 | |
43 AppRuntime::~AppRuntime() { | |
44 // need to stop things? | |
joedow
2016/12/19 23:56:26
Was this meant as a TODO?
| |
45 } | |
46 | |
47 } // namespace ios | |
48 } // namespace remoting | |
OLD | NEW |