1 // Copyright 2015 The Chromium Authors. 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.
5 #include "chrome/browser/task_management/providers/task_provider.h"
7 namespace task_management
{
9 TaskProvider::TaskProvider()
10 : observer_(nullptr) {
13 TaskProvider::~TaskProvider() {
16 void TaskProvider::SetObserver(TaskProviderObserver
* observer
) {
23 void TaskProvider::ClearObserver() {
29 void TaskProvider::NotifyObserverTaskAdded(Task
* task
) const {
31 observer_
->TaskAdded(task
);
34 void TaskProvider::NotifyObserverTaskRemoved(Task
* task
) const {
36 observer_
->TaskRemoved(task
);
39 } // namespace task_management