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

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

Issue 2255853003: IndexedDB: ScopedVector<T> -> vector<unique_ptr<T>> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 4 years, 4 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
« no previous file with comments | « content/browser/indexed_db/indexed_db_index_writer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_index_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698