| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 "content/renderer/media/media_interface_provider.h" | 5 #include "content/renderer/media/media_interface_provider.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "media/mojo/interfaces/content_decryption_module.mojom.h" | 8 #include "media/mojo/interfaces/content_decryption_module.mojom.h" |
| 9 #include "media/mojo/interfaces/renderer.mojom.h" | 9 #include "media/mojo/interfaces/renderer.mojom.h" |
| 10 #include "mojo/public/cpp/bindings/interface_request.h" | 10 #include "mojo/public/cpp/bindings/interface_request.h" |
| 11 #include "mojo/shell/public/cpp/connect.h" | 11 #include "services/shell/public/cpp/connect.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 MediaInterfaceProvider::MediaInterfaceProvider( | 15 MediaInterfaceProvider::MediaInterfaceProvider( |
| 16 const ConnectToApplicationCB& connect_to_app_cb) | 16 const ConnectToApplicationCB& connect_to_app_cb) |
| 17 : connect_to_app_cb_(connect_to_app_cb) { | 17 : connect_to_app_cb_(connect_to_app_cb) { |
| 18 DCHECK(!connect_to_app_cb_.is_null()); | 18 DCHECK(!connect_to_app_cb_.is_null()); |
| 19 } | 19 } |
| 20 | 20 |
| 21 MediaInterfaceProvider::~MediaInterfaceProvider() { | 21 MediaInterfaceProvider::~MediaInterfaceProvider() { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 void MediaInterfaceProvider::OnConnectionError() { | 61 void MediaInterfaceProvider::OnConnectionError() { |
| 62 DVLOG(1) << __FUNCTION__; | 62 DVLOG(1) << __FUNCTION__; |
| 63 DCHECK(thread_checker_.CalledOnValidThread()); | 63 DCHECK(thread_checker_.CalledOnValidThread()); |
| 64 | 64 |
| 65 media_service_factory_.reset(); | 65 media_service_factory_.reset(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 } // namespace content | 68 } // namespace content |
| OLD | NEW |