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

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

Issue 7889024: Implementation of IDBFactory::getDatabaseNames (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Remove unnecessary #includes Created 9 years, 3 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) 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_callbacks.h" 5 #include "content/browser/in_process_webkit/indexed_db_callbacks.h"
6 6
7 #include "content/common/indexed_db_messages.h" 7 #include "content/common/indexed_db_messages.h"
8 #include "webkit/quota/quota_manager.h" 8 #include "webkit/quota/quota_manager.h"
9 9
10 IndexedDBCallbacksBase::IndexedDBCallbacksBase( 10 IndexedDBCallbacksBase::IndexedDBCallbacksBase(
(...skipping 28 matching lines...) Expand all
39 response_id(), SerializedScriptValue(value))); 39 response_id(), SerializedScriptValue(value)));
40 } 40 }
41 41
42 void IndexedDBCallbacks<WebKit::WebIDBKey>::onSuccess( 42 void IndexedDBCallbacks<WebKit::WebIDBKey>::onSuccess(
43 const WebKit::WebIDBKey& value) { 43 const WebKit::WebIDBKey& value) {
44 dispatcher_host()->Send( 44 dispatcher_host()->Send(
45 new IndexedDBMsg_CallbacksSuccessIndexedDBKey( 45 new IndexedDBMsg_CallbacksSuccessIndexedDBKey(
46 response_id(), IndexedDBKey(value))); 46 response_id(), IndexedDBKey(value)));
47 } 47 }
48 48
49 void IndexedDBCallbacks<WebKit::WebDOMStringList>::onSuccess(
50 const WebKit::WebDOMStringList& value) {
51
52 std::vector<string16> list;
53 for (unsigned i = 0; i < value.length(); ++i)
54 list.push_back(value.item(i));
55
56 dispatcher_host()->Send(
57 new IndexedDBMsg_CallbacksSuccessStringList(
58 response_id(), list));
59 }
60
49 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess( 61 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess(
50 const WebKit::WebSerializedScriptValue& value) { 62 const WebKit::WebSerializedScriptValue& value) {
51 dispatcher_host()->Send( 63 dispatcher_host()->Send(
52 new IndexedDBMsg_CallbacksSuccessSerializedScriptValue( 64 new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
53 response_id(), SerializedScriptValue(value))); 65 response_id(), SerializedScriptValue(value)));
54 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698