| 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_database_callbacks.h" | 15 #include "content/browser/in_process_webkit/indexed_db_database_callbacks.h" |
| 16 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 16 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 17 #include "content/browser/renderer_host/render_message_filter.h" | 17 #include "content/browser/renderer_host/render_message_filter.h" |
| 18 #include "content/common/indexed_db/indexed_db_messages.h" | 18 #include "content/common/indexed_db/indexed_db_messages.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 #include "content/public/browser/user_metrics.h" | 20 #include "content/public/browser/user_metrics.h" |
| 21 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
| 22 #include "content/public/common/result_codes.h" | 22 #include "content/public/common/result_codes.h" |
| 23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 24 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" | 24 #include "third_party/WebKit/public/platform/WebData.h" |
| 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBCursor.h" | 25 #include "third_party/WebKit/public/platform/WebIDBCursor.h" |
| 26 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabase.h" | 26 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" |
| 27 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabaseCallb
acks.h" | 27 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" |
| 28 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabaseError
.h" | 28 #include "third_party/WebKit/public/platform/WebIDBDatabaseError.h" |
| 29 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabaseExcep
tion.h" | 29 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" |
| 30 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBFactory.h" | 30 #include "third_party/WebKit/public/platform/WebIDBFactory.h" |
| 31 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBMetadata.h" | 31 #include "third_party/WebKit/public/platform/WebIDBMetadata.h" |
| 32 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 32 #include "third_party/WebKit/public/platform/WebString.h" |
| 33 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 33 #include "third_party/WebKit/public/platform/WebVector.h" |
| 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; |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 new IndexedDBCallbacks<WebData>(parent_, ipc_thread_id, | 829 new IndexedDBCallbacks<WebData>(parent_, ipc_thread_id, |
| 830 ipc_callbacks_id)); | 830 ipc_callbacks_id)); |
| 831 } | 831 } |
| 832 | 832 |
| 833 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( | 833 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( |
| 834 int32 ipc_object_id) { | 834 int32 ipc_object_id) { |
| 835 parent_->DestroyObject(&map_, ipc_object_id); | 835 parent_->DestroyObject(&map_, ipc_object_id); |
| 836 } | 836 } |
| 837 | 837 |
| 838 } // namespace content | 838 } // namespace content |
| OLD | NEW |