| 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 "chrome/browser/media/output_protection_impl.h" | 5 #include "chrome/browser/media/output_protection_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 | 9 |
| 10 using media::interfaces::OutputProtection; | 10 using media::mojom::OutputProtection; |
| 11 | 11 |
| 12 // static | 12 // static |
| 13 void OutputProtectionImpl::Create( | 13 void OutputProtectionImpl::Create( |
| 14 content::RenderFrameHost* render_frame_host, | 14 content::RenderFrameHost* render_frame_host, |
| 15 mojo::InterfaceRequest<OutputProtection> request) { | 15 mojo::InterfaceRequest<OutputProtection> request) { |
| 16 DVLOG(2) << __FUNCTION__; | 16 DVLOG(2) << __FUNCTION__; |
| 17 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 17 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 18 DCHECK(render_frame_host); | 18 DCHECK(render_frame_host); |
| 19 | 19 |
| 20 // The created object is strongly bound to (and owned by) the pipe. | 20 // The created object is strongly bound to (and owned by) the pipe. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 44 void OutputProtectionImpl::EnableProtection( | 44 void OutputProtectionImpl::EnableProtection( |
| 45 uint32_t desired_protection_mask, | 45 uint32_t desired_protection_mask, |
| 46 const EnableProtectionCallback& callback) { | 46 const EnableProtectionCallback& callback) { |
| 47 DVLOG(2) << __FUNCTION__; | 47 DVLOG(2) << __FUNCTION__; |
| 48 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 48 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 49 | 49 |
| 50 NOTIMPLEMENTED(); | 50 NOTIMPLEMENTED(); |
| 51 | 51 |
| 52 callback.Run(false); | 52 callback.Run(false); |
| 53 } | 53 } |
| OLD | NEW |