#include "services/webnn/resource_task.h"
#include "services/webnn/queueable_resource_state_base.h"
namespace webnn {
ResourceTask::ResourceTask(
std::vector<scoped_refptr<QueueableResourceStateBase>> shared_resources,
std::vector<scoped_refptr<QueueableResourceStateBase>> exclusive_resources,
base::OnceCallback<void(base::OnceClosure)> task)
: … { … }
void ResourceTask::Enqueue() { … }
ResourceTask::~ResourceTask() { … }
bool ResourceTask::CanExecute() { … }
void ResourceTask::Execute(bool dequeue) { … }
void ResourceTask::Complete() { … }
}