| Index: content/browser/indexed_db/indexed_db_observer_changes.cc
|
| diff --git a/content/browser/indexed_db/indexed_db_observer_changes.cc b/content/browser/indexed_db/indexed_db_observer_changes.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fe74bb3712231c25b9cb3f35df44a69f9c42f989
|
| --- /dev/null
|
| +++ b/content/browser/indexed_db/indexed_db_observer_changes.cc
|
| @@ -0,0 +1,24 @@
|
| +// 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 "content/browser/indexed_db/indexed_db_observer_changes.h"
|
| +
|
| +#include "content/common/indexed_db/indexed_db_observation.h"
|
| +
|
| +namespace content {
|
| +
|
| +IndexedDBObserverChanges::IndexedDBObserverChanges() {}
|
| +
|
| +IndexedDBObserverChanges::~IndexedDBObserverChanges() {}
|
| +
|
| +void IndexedDBObserverChanges::AddObservationIndex(int32_t observer_id) {
|
| + observation_index[observer_id].push_back(observations.size() - 1);
|
| +}
|
| +
|
| +void IndexedDBObserverChanges::AddObservation(
|
| + std::unique_ptr<IndexedDBObservation> observation) {
|
| + observations.push_back(std::move(observation));
|
| +}
|
| +
|
| +} // namespace content
|
|
|