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

Unified Diff: content/browser/indexed_db/indexed_db_observer_changes.h

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Remove unnecessary forward declaration. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_observer_changes.h
diff --git a/content/browser/indexed_db/indexed_db_observer_changes.h b/content/browser/indexed_db/indexed_db_observer_changes.h
deleted file mode 100644
index 9a73b55c7c8755e4baac694fffbf486b56667043..0000000000000000000000000000000000000000
--- a/content/browser/indexed_db/indexed_db_observer_changes.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_
-#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include <map>
-#include <memory>
-#include <utility>
-#include <vector>
-
-#include "base/macros.h"
-#include "content/browser/indexed_db/indexed_db_observation.h"
-#include "content/common/content_export.h"
-
-namespace content {
-
-class IndexedDBObservation;
-
-// Holds observations corresponding to a transaction for a single connection.
-class CONTENT_EXPORT IndexedDBObserverChanges {
- public:
- IndexedDBObserverChanges();
- ~IndexedDBObserverChanges();
-
- void RecordObserverForLastObservation(int32_t observer_id);
- void AddObservation(std::unique_ptr<IndexedDBObservation> observation);
-
- std::map<int32_t, std::vector<int32_t>> release_observation_indices_map() {
- return std::move(observation_indices_map_);
- }
- std::vector<std::unique_ptr<IndexedDBObservation>> release_observations() {
- return std::move(observations_);
- }
-
- private:
- // Maps observer_id to corresponding set of indices in observations.
- std::map<int32_t, std::vector<int32_t>> observation_indices_map_;
- std::vector<std::unique_ptr<IndexedDBObservation>> observations_;
-
- DISALLOW_COPY_AND_ASSIGN(IndexedDBObserverChanges);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_CHANGES_H_
« no previous file with comments | « content/browser/indexed_db/indexed_db_observation.cc ('k') | content/browser/indexed_db/indexed_db_observer_changes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698