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

Side by Side Diff: third_party/WebKit/public/platform/modules/indexeddb/WebIDBObserver.h

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Rebased. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 // This class makes the blink::IDBObserver visible to the content layer by
6 // holding a reference to it.
7
8 #ifndef WebIDBObserver_h
9 #define WebIDBObserver_h
10
11 #include "public/platform/WebVector.h"
12 #include "public/platform/modules/indexeddb/WebIDBTypes.h"
13 #include <bitset>
14
15 namespace blink {
16
17 struct WebIDBObservation;
18
19 class WebIDBObserver {
20 public:
21 virtual ~WebIDBObserver() {}
22
23 virtual bool transaction() const = 0;
24 virtual bool noRecords() const = 0;
25 virtual bool values() const = 0;
26 virtual const std::bitset<WebIDBOperationTypeCount>& operationTypes()
27 const = 0;
28 virtual void onChange(const WebVector<WebIDBObservation>&,
29 const WebVector<int32_t>& observationIndex) = 0;
30 };
31
32 } // namespace blink
33
34 #endif // WebIDBObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698