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

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

Issue 2386683003: IndexedDB: Ignore open/delete requests from terminated renderers. (Closed)
Patch Set: Created 4 years, 3 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..84684ea4b07b81670a3d18175765d0befda807ca 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 is_open() const { return is_open_; }
cmumford 2016/10/03 18:39:27 What about moving this into the *.cc file and addi
jsbell 2016/10/03 19:28:37 Done.
+
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_;

Powered by Google App Engine
This is Rietveld 408576698