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

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

Issue 2386683003: IndexedDB: Ignore open/delete requests from terminated renderers. (Closed)
Patch Set: Allow deletes to proceed Created 4 years, 2 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_dispatcher_host.h
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.h b/content/browser/indexed_db/indexed_db_dispatcher_host.h
index 204a033b5387b7d19dc54ca97676005eca1f84ec..d59ba81a6f451832026b1a90fc064d23a7f501f3 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.h
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.h
@@ -115,6 +115,10 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter {
std::string HoldBlobData(const IndexedDBBlobInfo& blob_info);
+ // True if the channel is closing/closed and outstanding requests
+ // can be abandoned. Only access on IndexedDB thread.
+ bool IsOpen() const;
+
private:
// Friends to enable OnDestruct() delegation.
friend class BrowserThread;
@@ -316,6 +320,7 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter {
blob_data_handle_map_;
// Only access on IndexedDB thread.
+ bool is_open_ = true;
std::unique_ptr<DatabaseDispatcherHost> database_dispatcher_host_;
std::unique_ptr<CursorDispatcherHost> cursor_dispatcher_host_;
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_unittest.cc ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698