[M120 Migration][MM] Add new class for HBBTV on TV
[platform/framework/web/chromium-efl.git] / tizen_src / chromium_impl / media / filters / media_player_bridge_capi_tv.cc
1 // Copyright 2023 Samsung Electronics Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/filters/media_player_bridge_capi_tv.h"
6
7 namespace media {
8
9 MediaPlayerBridgeCapiTV::MediaPlayerBridgeCapiTV(const GURL& url,
10                                                  std::string& user_agent,
11                                                  double volume)
12     : MediaPlayerBridgeCapi(url, user_agent, volume), weak_factory_(this) {
13   LOG(INFO) << "(" << static_cast<void*>(this) << ") " << __func__;
14 }
15
16 MediaPlayerBridgeCapiTV::~MediaPlayerBridgeCapiTV() {
17   LOG(INFO) << "(" << static_cast<void*>(this) << ") " << __func__;
18   weak_factory_.InvalidateWeakPtrs();
19 }
20
21 }  // namespace media