| 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 holdi
ng a reference to it. |
| 6 | 6 |
| 7 #ifndef WebIDBObserver_h | 7 #ifndef WebIDBObserver_h |
| 8 #define WebIDBObserver_h | 8 #define WebIDBObserver_h |
| 9 | 9 |
| 10 #include <vector> |
| 11 |
| 10 namespace blink { | 12 namespace blink { |
| 11 | 13 |
| 14 struct WebIDBObservation; |
| 15 |
| 12 class WebIDBObserver { | 16 class WebIDBObserver { |
| 13 public: | 17 public: |
| 14 virtual ~WebIDBObserver() {} | 18 virtual ~WebIDBObserver() {} |
| 19 |
| 20 virtual bool transaction() = 0; |
| 21 virtual bool noRecords() = 0; |
| 22 virtual bool values() = 0; |
| 23 virtual void onChange(const std::vector<WebIDBObservation>&, std::vector<int
32_t> observationIndex) = 0; |
| 15 }; | 24 }; |
| 16 | 25 |
| 17 } // namespace blink | 26 } // namespace blink |
| 18 | 27 |
| 19 #endif // WebIDBObserver_h | 28 #endif // WebIDBObserver_h |
| OLD | NEW |