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_; |