| Index: third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp
|
| diff --git a/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp b/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp
|
| deleted file mode 100644
|
| index 8b53b5c4102342f7e71bd5739b41d4f01ea08e56..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp
|
| +++ /dev/null
|
| @@ -1,52 +0,0 @@
|
| -// 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 "modules/indexeddb/WebIDBObserverImpl.h"
|
| -
|
| -#include "wtf/PtrUtil.h"
|
| -
|
| -namespace blink {
|
| -
|
| -// static
|
| -std::unique_ptr<WebIDBObserverImpl> WebIDBObserverImpl::create(
|
| - IDBObserver* observer,
|
| - bool transaction,
|
| - bool values,
|
| - bool noRecords,
|
| - std::bitset<WebIDBOperationTypeCount> operationTypes) {
|
| - return wrapUnique(new WebIDBObserverImpl(observer, transaction, values,
|
| - noRecords, operationTypes));
|
| -}
|
| -
|
| -WebIDBObserverImpl::WebIDBObserverImpl(
|
| - IDBObserver* observer,
|
| - bool transaction,
|
| - bool values,
|
| - bool noRecords,
|
| - std::bitset<WebIDBOperationTypeCount> operationTypes)
|
| - : m_id(kInvalidObserverId),
|
| - m_transaction(transaction),
|
| - m_values(values),
|
| - m_noRecords(noRecords),
|
| - m_operationTypes(operationTypes),
|
| - m_observer(observer) {}
|
| -
|
| -// Remove observe call id from IDBObserver.
|
| -WebIDBObserverImpl::~WebIDBObserverImpl() {
|
| - if (m_id != kInvalidObserverId)
|
| - m_observer->removeObserver(m_id);
|
| -}
|
| -
|
| -void WebIDBObserverImpl::setId(int32_t id) {
|
| - DCHECK_EQ(kInvalidObserverId, m_id);
|
| - m_id = id;
|
| -}
|
| -
|
| -void WebIDBObserverImpl::onChange(
|
| - const WebVector<WebIDBObservation>& observations,
|
| - const WebVector<int32_t>& observationIndex) {
|
| - m_observer->onChange(m_id, observations, std::move(observationIndex));
|
| -}
|
| -
|
| -} // namespace blink
|
|
|