blob: 7978d868fbda038255b5488a5d9afcec84dfb3be [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/base/cast_resource.h"
namespace chromecast {
void CastResource::SetCastResourceClient(Client* client) {
client_ = client;
}
void CastResource::RegisterWithClient() {
if (client_)
client_->RegisterCastResource(this);
}
void CastResource::NotifyResourceReleased(Resource remain) {
if (client_)
client_->OnResourceReleased(this, remain);
}
} // namespace chromecast