| OLD | NEW |
| (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 | |
| OLD | NEW |