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/client/plugin/chromoting_instance.h" | 5 #include "remoting/client/plugin/chromoting_instance.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
13 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "base/string_split.h" | 17 #include "base/strings/string_split.h" |
18 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
19 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "jingle/glue/thread_wrapper.h" | 22 #include "jingle/glue/thread_wrapper.h" |
23 #include "media/base/media.h" | 23 #include "media/base/media.h" |
24 #include "net/socket/ssl_server_socket.h" | 24 #include "net/socket/ssl_server_socket.h" |
25 #include "ppapi/cpp/completion_callback.h" | 25 #include "ppapi/cpp/completion_callback.h" |
26 #include "ppapi/cpp/dev/url_util_dev.h" | 26 #include "ppapi/cpp/dev/url_util_dev.h" |
27 #include "ppapi/cpp/input_event.h" | 27 #include "ppapi/cpp/input_event.h" |
28 #include "ppapi/cpp/mouse_cursor.h" | 28 #include "ppapi/cpp/mouse_cursor.h" |
29 #include "ppapi/cpp/rect.h" | 29 #include "ppapi/cpp/rect.h" |
30 #include "remoting/base/constants.h" | 30 #include "remoting/base/constants.h" |
31 #include "remoting/base/util.h" | 31 #include "remoting/base/util.h" |
| 32 #include "remoting/client/chromoting_client.h" |
32 #include "remoting/client/client_config.h" | 33 #include "remoting/client/client_config.h" |
33 #include "remoting/client/chromoting_client.h" | |
34 #include "remoting/client/frame_consumer_proxy.h" | 34 #include "remoting/client/frame_consumer_proxy.h" |
35 #include "remoting/client/plugin/pepper_audio_player.h" | 35 #include "remoting/client/plugin/pepper_audio_player.h" |
36 #include "remoting/client/plugin/pepper_input_handler.h" | 36 #include "remoting/client/plugin/pepper_input_handler.h" |
37 #include "remoting/client/plugin/pepper_port_allocator.h" | 37 #include "remoting/client/plugin/pepper_port_allocator.h" |
38 #include "remoting/client/plugin/pepper_view.h" | 38 #include "remoting/client/plugin/pepper_view.h" |
39 #include "remoting/client/plugin/pepper_xmpp_proxy.h" | 39 #include "remoting/client/plugin/pepper_xmpp_proxy.h" |
40 #include "remoting/client/rectangle_update_decoder.h" | 40 #include "remoting/client/rectangle_update_decoder.h" |
41 #include "remoting/protocol/connection_to_host.h" | 41 #include "remoting/protocol/connection_to_host.h" |
42 #include "remoting/protocol/host_stub.h" | 42 #include "remoting/protocol/host_stub.h" |
43 #include "remoting/protocol/libjingle_transport_factory.h" | 43 #include "remoting/protocol/libjingle_transport_factory.h" |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 url_components.scheme.len); | 819 url_components.scheme.len); |
820 return url_scheme == kChromeExtensionUrlScheme; | 820 return url_scheme == kChromeExtensionUrlScheme; |
821 } | 821 } |
822 | 822 |
823 bool ChromotingInstance::IsConnected() { | 823 bool ChromotingInstance::IsConnected() { |
824 return host_connection_.get() && | 824 return host_connection_.get() && |
825 (host_connection_->state() == protocol::ConnectionToHost::CONNECTED); | 825 (host_connection_->state() == protocol::ConnectionToHost::CONNECTED); |
826 } | 826 } |
827 | 827 |
828 } // namespace remoting | 828 } // namespace remoting |
OLD | NEW |