| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/in_process_webkit/indexed_db_dispatcher_host.h" | 5 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "content/browser/in_process_webkit/indexed_db_callbacks.h" | 10 #include "content/browser/in_process_webkit/indexed_db_callbacks.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h
" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h
" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBIndex.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBIndex.h" |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyRange.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyRange.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" |
| 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
| 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" |
| 31 #include "webkit/glue/webkit_glue.h" | 31 #include "webkit/glue/webkit_glue.h" |
| 32 | 32 |
| 33 using content::BrowserThread; |
| 33 using WebKit::WebDOMStringList; | 34 using WebKit::WebDOMStringList; |
| 34 using WebKit::WebExceptionCode; | 35 using WebKit::WebExceptionCode; |
| 35 using WebKit::WebIDBCallbacks; | 36 using WebKit::WebIDBCallbacks; |
| 36 using WebKit::WebIDBCursor; | 37 using WebKit::WebIDBCursor; |
| 37 using WebKit::WebIDBDatabase; | 38 using WebKit::WebIDBDatabase; |
| 38 using WebKit::WebIDBDatabaseError; | 39 using WebKit::WebIDBDatabaseError; |
| 39 using WebKit::WebIDBIndex; | 40 using WebKit::WebIDBIndex; |
| 40 using WebKit::WebIDBKey; | 41 using WebKit::WebIDBKey; |
| 41 using WebKit::WebIDBKeyRange; | 42 using WebKit::WebIDBKeyRange; |
| 42 using WebKit::WebIDBObjectStore; | 43 using WebKit::WebIDBObjectStore; |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 } | 1067 } |
| 1067 idb_transaction->didCompleteTaskEvents(); | 1068 idb_transaction->didCompleteTaskEvents(); |
| 1068 } | 1069 } |
| 1069 | 1070 |
| 1070 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed( | 1071 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed( |
| 1071 int32 object_id) { | 1072 int32 object_id) { |
| 1072 transaction_size_map_.erase(object_id); | 1073 transaction_size_map_.erase(object_id); |
| 1073 transaction_url_map_.erase(object_id); | 1074 transaction_url_map_.erase(object_id); |
| 1074 parent_->DestroyObject(&map_, object_id); | 1075 parent_->DestroyObject(&map_, object_id); |
| 1075 } | 1076 } |
| OLD | NEW |