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

Side by Side Diff: content/browser/indexed_db/indexed_db_observer_changes.h

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: Filtering Changes to Observer : Browser End 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
(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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include <map>
12 #include <set>
13 #include <vector>
14
15 #include "base/macros.h"
16 #include "base/memory/ptr_util.h"
17 #include "base/stl_util.h"
18 #include "content/common/content_export.h"
19
20 namespace content {
21
22 class IndexedDBObservation;
23
24 struct CONTENT_EXPORT IndexedDBObserverChanges {
cmumford 2016/07/07 21:14:21 IndexedDBObserverChanges has methods and not just
palakj1 2016/07/08 17:37:56 Done.
25 IndexedDBObserverChanges();
26 ~IndexedDBObserverChanges();
27
28 void AddObservationIndex(int32_t observer_id);
29 void AddObservation(std::unique_ptr<IndexedDBObservation> observation);
30
31 // map observer_id to corresponding set of indices in observations.
32 std::map<int32_t, std::vector<int32_t>> observation_index;
33 std::vector<std::unique_ptr<IndexedDBObservation>> observations;
34
35 DISALLOW_COPY_AND_ASSIGN(IndexedDBObserverChanges);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698