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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
| 12 #include <memory> |
12 #include <set> | 13 #include <set> |
13 #include <vector> | 14 #include <vector> |
14 | 15 |
15 #include "base/macros.h" | 16 #include "base/macros.h" |
16 #include "base/memory/ptr_util.h" | |
17 #include "base/stl_util.h" | |
18 #include "content/browser/indexed_db/indexed_db_observation.h" | 17 #include "content/browser/indexed_db/indexed_db_observation.h" |
19 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
20 | 19 |
21 namespace content { | 20 namespace content { |
22 | 21 |
23 class IndexedDBObservation; | 22 class IndexedDBObservation; |
24 | 23 |
25 // Holds observations corresponding to a transaction for a single connection. | 24 // Holds observations corresponding to a transaction for a single connection. |
26 class CONTENT_EXPORT IndexedDBObserverChanges { | 25 class CONTENT_EXPORT IndexedDBObserverChanges { |
27 public: | 26 public: |
(...skipping 14 matching lines...) Expand all Loading... |
42 // Maps observer_id to corresponding set of indices in observations. | 41 // Maps observer_id to corresponding set of indices in observations. |
43 std::map<int32_t, std::vector<int32_t>> observation_indices_map_; | 42 std::map<int32_t, std::vector<int32_t>> observation_indices_map_; |
44 std::vector<std::unique_ptr<IndexedDBObservation>> observations_; | 43 std::vector<std::unique_ptr<IndexedDBObservation>> observations_; |
45 | 44 |
46 DISALLOW_COPY_AND_ASSIGN(IndexedDBObserverChanges); | 45 DISALLOW_COPY_AND_ASSIGN(IndexedDBObserverChanges); |
47 }; | 46 }; |
48 | 47 |
49 } // namespace content | 48 } // namespace content |
50 | 49 |
51 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_ | 50 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_ |
OLD | NEW |