| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 5 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 
| 6 | 6 | 
| 7 #include <stddef.h> | 7 #include <stddef.h> | 
| 8 | 8 | 
| 9 #include <algorithm> | 9 #include <algorithm> | 
| 10 #include <memory> | 10 #include <memory> | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
| 29 #include "content/browser/indexed_db/indexed_db_transaction.h" | 29 #include "content/browser/indexed_db/indexed_db_transaction.h" | 
| 30 #include "content/browser/indexed_db/indexed_db_value.h" | 30 #include "content/browser/indexed_db/indexed_db_value.h" | 
| 31 #include "content/common/indexed_db/indexed_db_constants.h" | 31 #include "content/common/indexed_db/indexed_db_constants.h" | 
| 32 #include "content/common/indexed_db/indexed_db_metadata.h" | 32 #include "content/common/indexed_db/indexed_db_metadata.h" | 
| 33 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" | 
| 34 #include "mojo/public/cpp/bindings/strong_associated_binding.h" | 34 #include "mojo/public/cpp/bindings/strong_associated_binding.h" | 
| 35 #include "storage/browser/blob/blob_storage_context.h" | 35 #include "storage/browser/blob/blob_storage_context.h" | 
| 36 #include "storage/browser/blob/shareable_file_reference.h" | 36 #include "storage/browser/blob/shareable_file_reference.h" | 
| 37 #include "storage/browser/quota/quota_manager.h" | 37 #include "storage/browser/quota/quota_manager.h" | 
| 38 | 38 | 
| 39 using indexed_db::mojom::CallbacksAssociatedPtrInfo; | 39 using ::indexed_db::mojom::CallbacksAssociatedPtrInfo; | 
| 40 using std::swap; | 40 using std::swap; | 
| 41 using storage::ShareableFileReference; | 41 using storage::ShareableFileReference; | 
| 42 | 42 | 
| 43 namespace content { | 43 namespace content { | 
| 44 | 44 | 
| 45 namespace { | 45 namespace { | 
| 46 | 46 | 
| 47 // The following two objects protect the given objects from being destructed on | 47 // The following two objects protect the given objects from being destructed on | 
| 48 // the IO thread if we have a shutdown or an error. | 48 // the IO thread if we have a shutdown or an error. | 
| 49 struct SafeIOThreadConnectionWrapper { | 49 struct SafeIOThreadConnectionWrapper { | 
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 766   return true; | 766   return true; | 
| 767 } | 767 } | 
| 768 | 768 | 
| 769 void IndexedDBCallbacks::IOThreadHelper::OnConnectionError() { | 769 void IndexedDBCallbacks::IOThreadHelper::OnConnectionError() { | 
| 770   DCHECK_CURRENTLY_ON(BrowserThread::IO); | 770   DCHECK_CURRENTLY_ON(BrowserThread::IO); | 
| 771   callbacks_.reset(); | 771   callbacks_.reset(); | 
| 772   dispatcher_host_ = nullptr; | 772   dispatcher_host_ = nullptr; | 
| 773 } | 773 } | 
| 774 | 774 | 
| 775 }  // namespace content | 775 }  // namespace content | 
| OLD | NEW | 
|---|