OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/renderer/extensions/cast_streaming_native_handler.h" | 5 #include "chrome/renderer/extensions/cast_streaming_native_handler.h" |
6 | 6 |
7 #include <functional> | 7 #include <functional> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "chrome/common/extensions/api/cast_streaming_rtp_stream.h" | 12 #include "chrome/common/extensions/api/cast_streaming_rtp_stream.h" |
13 #include "chrome/common/extensions/api/cast_streaming_udp_transport.h" | 13 #include "chrome/common/extensions/api/cast_streaming_udp_transport.h" |
14 #include "chrome/renderer/extensions/chrome_v8_context.h" | 14 #include "chrome/renderer/extensions/chrome_v8_context.h" |
15 #include "chrome/renderer/media/cast_rtp_stream.h" | 15 #include "chrome/renderer/media/cast_rtp_stream.h" |
16 #include "chrome/renderer/media/cast_session.h" | 16 #include "chrome/renderer/media/cast_session.h" |
| 17 #include "chrome/renderer/media/cast_transport_sender_ipc.h" |
17 #include "chrome/renderer/media/cast_udp_transport.h" | 18 #include "chrome/renderer/media/cast_udp_transport.h" |
| 19 #include "content/public/renderer/render_view.h" |
18 #include "content/public/renderer/v8_value_converter.h" | 20 #include "content/public/renderer/v8_value_converter.h" |
19 #include "net/base/host_port_pair.h" | 21 #include "net/base/host_port_pair.h" |
20 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 22 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
21 #include "third_party/WebKit/public/web/WebDOMMediaStreamTrack.h" | 23 #include "third_party/WebKit/public/web/WebDOMMediaStreamTrack.h" |
22 | 24 |
23 using content::V8ValueConverter; | 25 using content::V8ValueConverter; |
24 | 26 |
25 // Extension types. | 27 // Extension types. |
26 using extensions::api::cast_streaming_rtp_stream::CodecSpecificParams; | 28 using extensions::api::cast_streaming_rtp_stream::CodecSpecificParams; |
27 using extensions::api::cast_streaming_rtp_stream::RtpParams; | 29 using extensions::api::cast_streaming_rtp_stream::RtpParams; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 transport_id); | 384 transport_id); |
383 if (iter != udp_transport_map_.end()) | 385 if (iter != udp_transport_map_.end()) |
384 return iter->second.get(); | 386 return iter->second.get(); |
385 v8::Isolate* isolate = context()->v8_context()->GetIsolate(); | 387 v8::Isolate* isolate = context()->v8_context()->GetIsolate(); |
386 isolate->ThrowException(v8::Exception::RangeError( | 388 isolate->ThrowException(v8::Exception::RangeError( |
387 v8::String::NewFromUtf8(isolate, kUdpTransportNotFound))); | 389 v8::String::NewFromUtf8(isolate, kUdpTransportNotFound))); |
388 return NULL; | 390 return NULL; |
389 } | 391 } |
390 | 392 |
391 } // namespace extensions | 393 } // namespace extensions |
OLD | NEW |