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

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

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: Post haraken review Created 4 years, 5 months 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
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 "public/platform/WebVector.h"
11 #include "public/platform/modules/indexeddb/WebIDBTypes.h"
12 #include <bitset>
13
10 namespace blink { 14 namespace blink {
11 15
16 struct WebIDBObservation;
17
12 class WebIDBObserver { 18 class WebIDBObserver {
13 public: 19 public:
14 virtual ~WebIDBObserver() {} 20 virtual ~WebIDBObserver() {}
21
22 virtual bool transaction() const = 0;
23 virtual bool noRecords() const = 0;
24 virtual bool values() const = 0;
25 virtual const std::bitset<WebIDBOperationTypeCount>& operationTypes() const = 0;
26 virtual void onChange(const WebVector<WebIDBObservation>&, WebVector<int32_t > observationIndex) = 0;
chrishtr 2016/07/20 19:51:05 Should the second argument be a const reference?
palakj1 2016/07/20 21:41:47 sorry. changed
15 }; 27 };
16 28
17 } // namespace blink 29 } // namespace blink
18 30
19 #endif // WebIDBObserver_h 31 #endif // WebIDBObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698