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" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "webkit/base/file_path_string_conversions.h" | 34 #include "webkit/base/file_path_string_conversions.h" |
35 #include "webkit/base/origin_url_conversions.h" | 35 #include "webkit/base/origin_url_conversions.h" |
36 #include "webkit/database/database_util.h" | 36 #include "webkit/database/database_util.h" |
37 | 37 |
38 using webkit_database::DatabaseUtil; | 38 using webkit_database::DatabaseUtil; |
39 using WebKit::WebData; | 39 using WebKit::WebData; |
40 using WebKit::WebIDBCallbacks; | 40 using WebKit::WebIDBCallbacks; |
41 using WebKit::WebIDBCursor; | 41 using WebKit::WebIDBCursor; |
42 using WebKit::WebIDBDatabase; | 42 using WebKit::WebIDBDatabase; |
43 using WebKit::WebIDBDatabaseError; | 43 using WebKit::WebIDBDatabaseError; |
44 using WebKit::WebIDBIndex; | |
45 using WebKit::WebIDBKey; | 44 using WebKit::WebIDBKey; |
46 using WebKit::WebIDBMetadata; | 45 using WebKit::WebIDBMetadata; |
47 using WebKit::WebIDBObjectStore; | |
48 using WebKit::WebString; | 46 using WebKit::WebString; |
49 using WebKit::WebVector; | 47 using WebKit::WebVector; |
50 | 48 |
51 namespace content { | 49 namespace content { |
52 namespace { | 50 namespace { |
53 | 51 |
54 template <class T> | 52 template <class T> |
55 void DeleteOnWebKitThread(T* obj) { | 53 void DeleteOnWebKitThread(T* obj) { |
56 if (!BrowserThread::DeleteSoon(BrowserThread::WEBKIT_DEPRECATED, | 54 if (!BrowserThread::DeleteSoon(BrowserThread::WEBKIT_DEPRECATED, |
57 FROM_HERE, obj)) | 55 FROM_HERE, obj)) |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 new IndexedDBCallbacks<WebData>(parent_, ipc_thread_id, | 827 new IndexedDBCallbacks<WebData>(parent_, ipc_thread_id, |
830 ipc_callbacks_id)); | 828 ipc_callbacks_id)); |
831 } | 829 } |
832 | 830 |
833 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( | 831 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( |
834 int32 ipc_object_id) { | 832 int32 ipc_object_id) { |
835 parent_->DestroyObject(&map_, ipc_object_id); | 833 parent_->DestroyObject(&map_, ipc_object_id); |
836 } | 834 } |
837 | 835 |
838 } // namespace content | 836 } // namespace content |
OLD | NEW |