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/in_process_webkit/indexed_db_dispatcher_host.h" | 5 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/process.h" | 11 #include "base/process.h" |
12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "content/browser/in_process_webkit/indexed_db_callbacks.h" | 14 #include "content/browser/in_process_webkit/indexed_db_callbacks.h" |
15 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" | 15 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
16 #include "content/browser/in_process_webkit/indexed_db_database_callbacks.h" | 16 #include "content/browser/in_process_webkit/indexed_db_database_callbacks.h" |
17 #include "content/browser/in_process_webkit/indexed_db_transaction_callbacks.h" | 17 #include "content/browser/in_process_webkit/indexed_db_transaction_callbacks.h" |
18 #include "content/browser/renderer_host/render_message_filter.h" | 18 #include "content/browser/renderer_host/render_message_filter.h" |
19 #include "content/common/indexed_db/indexed_db_messages.h" | 19 #include "content/common/indexed_db/indexed_db_messages.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/user_metrics.h" | 21 #include "content/public/browser/user_metrics.h" |
22 #include "content/public/common/content_switches.h" | 22 #include "content/public/common/content_switches.h" |
23 #include "content/public/common/result_codes.h" | 23 #include "content/public/common/result_codes.h" |
24 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
| 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac
ks.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac
ks.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBIndex.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBIndex.h" |
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBMetadata.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBMetadata.h" |
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" |
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" |
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | |
36 #include "webkit/base/file_path_string_conversions.h" | 36 #include "webkit/base/file_path_string_conversions.h" |
37 #include "webkit/database/database_util.h" | 37 #include "webkit/database/database_util.h" |
38 | 38 |
39 using webkit_database::DatabaseUtil; | 39 using webkit_database::DatabaseUtil; |
40 using WebKit::WebDOMStringList; | 40 using WebKit::WebDOMStringList; |
41 using WebKit::WebExceptionCode; | 41 using WebKit::WebExceptionCode; |
42 using WebKit::WebIDBCallbacks; | 42 using WebKit::WebIDBCallbacks; |
43 using WebKit::WebIDBCursor; | 43 using WebKit::WebIDBCursor; |
44 using WebKit::WebIDBDatabase; | 44 using WebKit::WebIDBDatabase; |
45 using WebKit::WebIDBIndex; | 45 using WebKit::WebIDBIndex; |
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed( | 1286 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed( |
1287 int32 ipc_object_id) { | 1287 int32 ipc_object_id) { |
1288 // TODO(dgrogan): This doesn't seem to be happening with some version change | 1288 // TODO(dgrogan): This doesn't seem to be happening with some version change |
1289 // transactions. Possibly introduced with integer version support. | 1289 // transactions. Possibly introduced with integer version support. |
1290 transaction_ipc_size_map_.erase(ipc_object_id); | 1290 transaction_ipc_size_map_.erase(ipc_object_id); |
1291 transaction_url_map_.erase(ipc_object_id); | 1291 transaction_url_map_.erase(ipc_object_id); |
1292 parent_->DestroyObject(&map_, ipc_object_id); | 1292 parent_->DestroyObject(&map_, ipc_object_id); |
1293 } | 1293 } |
1294 | 1294 |
1295 } // namespace content | 1295 } // namespace content |
OLD | NEW |