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/media/cast_session_delegate.h" | 5 #include "chrome/renderer/media/cast_session_delegate.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "chrome/renderer/media/cast_threads.h" | 18 #include "chrome/renderer/media/cast_threads.h" |
19 #include "chrome/renderer/media/cast_transport_ipc.h" | 19 #include "chrome/renderer/media/cast_transport_ipc.h" |
20 #include "components/version_info/version_info.h" | 20 #include "components/version_info/version_info.h" |
21 #include "content/public/renderer/render_thread.h" | 21 #include "content/public/renderer/render_thread.h" |
22 #include "media/cast/cast_config.h" | 22 #include "media/cast/cast_config.h" |
23 #include "media/cast/cast_environment.h" | 23 #include "media/cast/cast_environment.h" |
24 #include "media/cast/cast_sender.h" | 24 #include "media/cast/cast_sender.h" |
25 #include "media/cast/logging/log_serializer.h" | 25 #include "media/cast/logging/log_serializer.h" |
26 #include "media/cast/logging/logging_defines.h" | 26 #include "media/cast/logging/logging_defines.h" |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 error_callback.Run(base::StringPrintf("%s codec runtime error.", | 307 error_callback.Run(base::StringPrintf("%s codec runtime error.", |
308 is_for_audio ? "Audio" : "Video")); | 308 is_for_audio ? "Audio" : "Video")); |
309 break; | 309 break; |
310 } | 310 } |
311 } | 311 } |
312 | 312 |
313 void CastSessionDelegate::ReceivePacket( | 313 void CastSessionDelegate::ReceivePacket( |
314 std::unique_ptr<media::cast::Packet> packet) { | 314 std::unique_ptr<media::cast::Packet> packet) { |
315 // Do nothing (frees packet) | 315 // Do nothing (frees packet) |
316 } | 316 } |
OLD | NEW |