Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.cc

Issue 15564008: Migrate the IndexedDB backend from Blink to Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Accessor naming, use LevelDBSlice ctor explicitly Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698