Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Unified Diff: third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Remove unnecessary forward declaration. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h b/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h
deleted file mode 100644
index 8c4688f8552b35ff1304e2efe31ee94c8f325b9e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h
+++ /dev/null
@@ -1,65 +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.
-
-#ifndef WebIDBObserverImpl_h
-#define WebIDBObserverImpl_h
-
-#include <bitset>
-
-#include "modules/indexeddb/IDBObserver.h"
-#include "platform/heap/Persistent.h"
-#include "public/platform/modules/indexeddb/WebIDBObserver.h"
-#include "public/platform/modules/indexeddb/WebIDBTypes.h"
-
-namespace blink {
-
-class IDBObserver;
-struct WebIDBObservation;
-
-class WebIDBObserverImpl final : public WebIDBObserver {
- USING_FAST_MALLOC(WebIDBObserverImpl);
-
- public:
- static std::unique_ptr<WebIDBObserverImpl> create(
- IDBObserver*,
- bool transaction,
- bool values,
- bool noRecords,
- std::bitset<WebIDBOperationTypeCount> operationTypes);
-
- ~WebIDBObserverImpl() override;
-
- void setId(int32_t);
-
- bool transaction() const { return m_transaction; }
- bool noRecords() const { return m_noRecords; }
- bool values() const { return m_values; }
- const std::bitset<WebIDBOperationTypeCount>& operationTypes() const {
- return m_operationTypes;
- }
-
- void onChange(const WebVector<WebIDBObservation>&,
- const WebVector<int32_t>& observationIndex);
-
- private:
- enum { kInvalidObserverId = -1 };
-
- WebIDBObserverImpl(IDBObserver*,
- bool transaction,
- bool values,
- bool noRecords,
- std::bitset<WebIDBOperationTypeCount> operationTypes);
-
- int32_t m_id;
- bool m_transaction;
- bool m_values;
- bool m_noRecords;
- // Operation type bits are set corresponding to WebIDBOperationType.
- std::bitset<WebIDBOperationTypeCount> m_operationTypes;
- Persistent<IDBObserver> m_observer;
-};
-
-} // namespace blink
-
-#endif // WebIDBObserverImpl_h

Powered by Google App Engine
This is Rietveld 408576698