1 // Copyright (c) 2020 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 5 #include "libcef/browser/media_router/media_source_impl.h" 6 CefMediaSourceImpl(const media_router::MediaSource::Id & source_id)7CefMediaSourceImpl::CefMediaSourceImpl( 8 const media_router::MediaSource::Id& source_id) 9 : source_(source_id) {} 10 CefMediaSourceImpl(const GURL & presentation_url)11CefMediaSourceImpl::CefMediaSourceImpl(const GURL& presentation_url) 12 : source_(presentation_url) {} 13 GetId()14CefString CefMediaSourceImpl::GetId() { 15 return source_.id(); 16 } 17 IsCastSource()18bool CefMediaSourceImpl::IsCastSource() { 19 return !IsDialSource(); 20 } 21 IsDialSource()22bool CefMediaSourceImpl::IsDialSource() { 23 return source_.IsDialSource(); 24 } 25