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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_pending_delete.h
diff --git a/content/browser/indexed_db/indexed_db_pending_delete.h b/content/browser/indexed_db/indexed_db_pending_delete.h
new file mode 100644
index 0000000000000000000000000000000000000000..1bcaca139169906ee37437fe5170af1b4db87a38
--- /dev/null
+++ b/content/browser/indexed_db/indexed_db_pending_delete.h
@@ -0,0 +1,42 @@
+// 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_PENDING_DELETE_H_
+#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_DELETE_H_
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "content/browser/indexed_db/indexed_db_callbacks.h"
+#include "content/browser/indexed_db/indexed_db_change_handler.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class IndexedDBDatabaseError;
+class IndexedDBOpenRequestObserver;
+
+class CONTENT_EXPORT IndexedDBPendingDelete {
+ public:
+ IndexedDBPendingDelete(
+ const DeleteResultCallback& callback,
+ scoped_refptr<IndexedDBChangeHandler> change_handler,
+ scoped_refptr<IndexedDBOpenRequestObserver> delete_observer);
+ ~IndexedDBPendingDelete();
+
+ void OnError(const IndexedDBDatabaseError& error);
+ void OnSuccess(int64_t version);
+ void OnBlocked(int64_t old_version);
+
+ private:
+ DeleteResultCallback callback_;
+ scoped_refptr<IndexedDBChangeHandler> change_handler_;
+ scoped_refptr<IndexedDBOpenRequestObserver> delete_observer_;
+
+ DISALLOW_COPY_AND_ASSIGN(IndexedDBPendingDelete);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_DELETE_H_
« no previous file with comments | « content/browser/indexed_db/indexed_db_pending_connection.cc ('k') | content/browser/indexed_db/indexed_db_pending_delete.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698