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

Unified Diff: content/browser/indexed_db/indexed_db_observation.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_observation.h
diff --git a/content/browser/indexed_db/indexed_db_observation.h b/content/browser/indexed_db/indexed_db_observation.h
deleted file mode 100644
index 2dd26f436f0db897a7fd6c024e2521b601d7c42c..0000000000000000000000000000000000000000
--- a/content/browser/indexed_db/indexed_db_observation.h
+++ /dev/null
@@ -1,51 +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_OBSERVATION_H_
-#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVATION_H_
-
-#include "base/macros.h"
-#include "content/browser/indexed_db/indexed_db_value.h"
-#include "content/common/content_export.h"
-#include "content/common/indexed_db/indexed_db_key_range.h"
-#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h"
-
-namespace content {
-
-// Represents a single observed operation (put/add/delete/clear) of a
-// transaction.
-class IndexedDBObservation {
- public:
- using OperationType = blink::WebIDBOperationType;
-
- IndexedDBObservation(int32_t object_store_id, OperationType type);
- IndexedDBObservation(int32_t object_store_id,
- OperationType type,
- IndexedDBKeyRange key_range);
- IndexedDBObservation(int32_t object_store_id,
- OperationType type,
- IndexedDBKeyRange key_range,
- IndexedDBValue value);
-
- ~IndexedDBObservation();
-
- int64_t object_store_id() const { return object_store_id_; }
- OperationType type() const { return type_; }
- const IndexedDBKeyRange key_range() const { return key_range_; }
- const IndexedDBValue value() const { return value_; }
-
- private:
- int64_t object_store_id_;
- OperationType type_;
- // Populated for ADD, PUT, and DELETE operations.
- IndexedDBKeyRange key_range_;
- // Populated for ADD and PUT operations if values are requested.
- IndexedDBValue value_;
-
- DISALLOW_COPY_AND_ASSIGN(IndexedDBObservation);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVATION_H_
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_unittest.cc ('k') | content/browser/indexed_db/indexed_db_observation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698