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

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

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final architechture 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_observer.h
diff --git a/content/browser/indexed_db/indexed_db_observer.h b/content/browser/indexed_db/indexed_db_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..f7bd95985a3b280865f63303b9e44faaf4578ff7
--- /dev/null
+++ b/content/browser/indexed_db/indexed_db_observer.h
@@ -0,0 +1,31 @@
+// 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_H_
+#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_H_
+
+#include <stddef.h>
+#include <stdint.h>
+
+#include "base/macros.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class CONTENT_EXPORT IndexedDBObserver {
+ public:
+ IndexedDBObserver(int32_t observer_id);
+ ~IndexedDBObserver();
+
+ int32_t id() const { return observer_id_; }
+
+ private:
+ int32_t observer_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(IndexedDBObserver);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_H_
« no previous file with comments | « content/browser/indexed_db/indexed_db_dispatcher_host.cc ('k') | content/browser/indexed_db/indexed_db_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698