| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/database_impl.h" | 5 #include "content/browser/indexed_db/database_impl.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
| 7 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 8 #include "content/browser/bad_message.h" | 9 #include "content/browser/bad_message.h" |
| 9 #include "content/browser/child_process_security_policy_impl.h" | 10 #include "content/browser/child_process_security_policy_impl.h" |
| 10 #include "content/browser/indexed_db/indexed_db_connection.h" | 11 #include "content/browser/indexed_db/indexed_db_connection.h" |
| 11 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 12 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 12 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 13 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 13 #include "content/browser/indexed_db/indexed_db_transaction.h" | 14 #include "content/browser/indexed_db/indexed_db_transaction.h" |
| 14 #include "content/browser/indexed_db/indexed_db_value.h" | 15 #include "content/browser/indexed_db/indexed_db_value.h" |
| 15 #include "storage/browser/blob/blob_storage_context.h" | 16 #include "storage/browser/blob/blob_storage_context.h" |
| 16 #include "storage/browser/quota/quota_manager_proxy.h" | 17 #include "storage/browser/quota/quota_manager_proxy.h" |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 usage + transaction->size() <= quota) { | 832 usage + transaction->size() <= quota) { |
| 832 connection_->database()->Commit(transaction); | 833 connection_->database()->Commit(transaction); |
| 833 } else { | 834 } else { |
| 834 connection_->AbortTransaction( | 835 connection_->AbortTransaction( |
| 835 transaction, | 836 transaction, |
| 836 IndexedDBDatabaseError(blink::WebIDBDatabaseExceptionQuotaError)); | 837 IndexedDBDatabaseError(blink::WebIDBDatabaseExceptionQuotaError)); |
| 837 } | 838 } |
| 838 } | 839 } |
| 839 | 840 |
| 840 } // namespace content | 841 } // namespace content |
| OLD | NEW |