| Index: media/base/state.cc
|
| diff --git a/media/base/state.cc b/media/base/state.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1716a53bc67f0c7e6ef15861438d4cf0ce080507
|
| --- /dev/null
|
| +++ b/media/base/state.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2016 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 "media/base/state.h"
|
| +
|
| +namespace media {
|
| +
|
| +State::State() {}
|
| +
|
| +State::~State() {}
|
| +
|
| +void State::RegisterClient(Client* client) {
|
| + clients_.insert(client);
|
| +}
|
| +
|
| +void State::UnregisterClient(Client* client) {
|
| + clients_.erase(client);
|
| +}
|
| +
|
| +void State::StateChanged() {
|
| + for (Client* client : clients_)
|
| + client->OnStateChanged();
|
| +}
|
| +
|
| +} // namespace media
|
|
|