| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This class makes the blink::IDBObserver visible to the content layer by holdi
ng a reference to it. | 5 // This class makes the blink::IDBObserver visible to the content layer by |
| 6 // holding a reference to it. |
| 6 | 7 |
| 7 #ifndef WebIDBObserver_h | 8 #ifndef WebIDBObserver_h |
| 8 #define WebIDBObserver_h | 9 #define WebIDBObserver_h |
| 9 | 10 |
| 10 #include "public/platform/WebVector.h" | 11 #include "public/platform/WebVector.h" |
| 11 #include "public/platform/modules/indexeddb/WebIDBTypes.h" | 12 #include "public/platform/modules/indexeddb/WebIDBTypes.h" |
| 12 #include <bitset> | 13 #include <bitset> |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 struct WebIDBObservation; | 17 struct WebIDBObservation; |
| 17 | 18 |
| 18 class WebIDBObserver { | 19 class WebIDBObserver { |
| 19 public: | 20 public: |
| 20 virtual ~WebIDBObserver() {} | 21 virtual ~WebIDBObserver() {} |
| 21 | 22 |
| 22 virtual bool transaction() const = 0; | 23 virtual bool transaction() const = 0; |
| 23 virtual bool noRecords() const = 0; | 24 virtual bool noRecords() const = 0; |
| 24 virtual bool values() const = 0; | 25 virtual bool values() const = 0; |
| 25 virtual const std::bitset<WebIDBOperationTypeCount>& operationTypes() | 26 virtual const std::bitset<WebIDBOperationTypeCount>& operationTypes() |
| 26 const = 0; | 27 const = 0; |
| 27 virtual void onChange(const WebVector<WebIDBObservation>&, | 28 virtual void onChange(const WebVector<WebIDBObservation>&, |
| 28 const WebVector<int32_t>& observationIndex) = 0; | 29 const WebVector<int32_t>& observationIndex) = 0; |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 } // namespace blink | 32 } // namespace blink |
| 32 | 33 |
| 33 #endif // WebIDBObserver_h | 34 #endif // WebIDBObserver_h |
| OLD | NEW |