OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/task.h" | 12 #include "base/task.h" |
13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
14 // TODO(sergeyu): We should not depend on renderer here. Instead P2P | 14 // TODO(sergeyu): We should not depend on renderer here. Instead P2P |
15 // Pepper API should be used. Remove this dependency. | 15 // Pepper API should be used. Remove this dependency. |
16 // crbug.com/74951 | 16 // crbug.com/74951 |
17 #include "chrome/renderer/p2p/ipc_network_manager.h" | 17 #include "content/renderer/p2p/ipc_network_manager.h" |
18 #include "chrome/renderer/p2p/ipc_socket_factory.h" | 18 #include "content/renderer/p2p/ipc_socket_factory.h" |
19 #include "ppapi/c/pp_input_event.h" | 19 #include "ppapi/c/pp_input_event.h" |
20 #include "ppapi/cpp/completion_callback.h" | 20 #include "ppapi/cpp/completion_callback.h" |
21 #include "ppapi/cpp/rect.h" | 21 #include "ppapi/cpp/rect.h" |
22 #include "remoting/client/client_config.h" | 22 #include "remoting/client/client_config.h" |
23 #include "remoting/client/client_util.h" | 23 #include "remoting/client/client_util.h" |
24 #include "remoting/client/chromoting_client.h" | 24 #include "remoting/client/chromoting_client.h" |
25 #include "remoting/client/rectangle_update_decoder.h" | 25 #include "remoting/client/rectangle_update_decoder.h" |
26 #include "remoting/client/plugin/chromoting_scriptable_object.h" | 26 #include "remoting/client/plugin/chromoting_scriptable_object.h" |
27 #include "remoting/client/plugin/pepper_input_handler.h" | 27 #include "remoting/client/plugin/pepper_input_handler.h" |
28 #include "remoting/client/plugin/pepper_port_allocator_session.h" | 28 #include "remoting/client/plugin/pepper_port_allocator_session.h" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 object->Init(); | 271 object->Init(); |
272 | 272 |
273 // The pp::Var takes ownership of object here. | 273 // The pp::Var takes ownership of object here. |
274 instance_object_ = pp::Var(this, object); | 274 instance_object_ = pp::Var(this, object); |
275 } | 275 } |
276 | 276 |
277 return instance_object_; | 277 return instance_object_; |
278 } | 278 } |
279 | 279 |
280 } // namespace remoting | 280 } // namespace remoting |
OLD | NEW |