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

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

Issue 6513002: indexeddb: make setVersion fire blocked event if other connections are open (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/in_process_webkit/indexed_db_callbacks.h" 5 #include "chrome/browser/in_process_webkit/indexed_db_callbacks.h"
6 6
7 #include "chrome/common/indexed_db_messages.h" 7 #include "chrome/common/indexed_db_messages.h"
8 8
9 IndexedDBCallbacksBase::IndexedDBCallbacksBase( 9 IndexedDBCallbacksBase::IndexedDBCallbacksBase(
10 IndexedDBDispatcherHost* dispatcher_host, 10 IndexedDBDispatcherHost* dispatcher_host,
(...skipping 11 matching lines...) Expand all
22 transaction_id_(transaction_id) { 22 transaction_id_(transaction_id) {
23 } 23 }
24 24
25 IndexedDBTransactionCallbacks::~IndexedDBTransactionCallbacks() {} 25 IndexedDBTransactionCallbacks::~IndexedDBTransactionCallbacks() {}
26 26
27 void IndexedDBCallbacksBase::onError(const WebKit::WebIDBDatabaseError& error) { 27 void IndexedDBCallbacksBase::onError(const WebKit::WebIDBDatabaseError& error) {
28 dispatcher_host_->Send(new IndexedDBMsg_CallbacksError( 28 dispatcher_host_->Send(new IndexedDBMsg_CallbacksError(
29 response_id_, error.code(), error.message())); 29 response_id_, error.code(), error.message()));
30 } 30 }
31 31
32 void IndexedDBCallbacksBase::onBlocked() {
33 dispatcher_host_->Send(new IndexedDBMsg_CallbacksBlocked(response_id_));
34 }
35
32 void IndexedDBTransactionCallbacks::onAbort() { 36 void IndexedDBTransactionCallbacks::onAbort() {
33 dispatcher_host_->Send( 37 dispatcher_host_->Send(
34 new IndexedDBMsg_TransactionCallbacksAbort(transaction_id_)); 38 new IndexedDBMsg_TransactionCallbacksAbort(transaction_id_));
35 } 39 }
36 40
37 void IndexedDBTransactionCallbacks::onComplete() { 41 void IndexedDBTransactionCallbacks::onComplete() {
38 dispatcher_host_->Send( 42 dispatcher_host_->Send(
39 new IndexedDBMsg_TransactionCallbacksComplete(transaction_id_)); 43 new IndexedDBMsg_TransactionCallbacksComplete(transaction_id_));
40 } 44 }
41 45
(...skipping 22 matching lines...) Expand all
64 new IndexedDBMsg_CallbacksSuccessIndexedDBKey( 68 new IndexedDBMsg_CallbacksSuccessIndexedDBKey(
65 response_id(), IndexedDBKey(value))); 69 response_id(), IndexedDBKey(value)));
66 } 70 }
67 71
68 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess( 72 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess(
69 const WebKit::WebSerializedScriptValue& value) { 73 const WebKit::WebSerializedScriptValue& value) {
70 dispatcher_host()->Send( 74 dispatcher_host()->Send(
71 new IndexedDBMsg_CallbacksSuccessSerializedScriptValue( 75 new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
72 response_id(), SerializedScriptValue(value))); 76 response_id(), SerializedScriptValue(value)));
73 } 77 }
OLDNEW
« no previous file with comments | « chrome/browser/in_process_webkit/indexed_db_callbacks.h ('k') | chrome/common/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698