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

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

Issue 6458004: Remove includes of message headers in headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
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"
8
7 IndexedDBCallbacksBase::IndexedDBCallbacksBase( 9 IndexedDBCallbacksBase::IndexedDBCallbacksBase(
8 IndexedDBDispatcherHost* dispatcher_host, 10 IndexedDBDispatcherHost* dispatcher_host,
9 int32 response_id) 11 int32 response_id)
10 : dispatcher_host_(dispatcher_host), 12 : dispatcher_host_(dispatcher_host),
11 response_id_(response_id) { 13 response_id_(response_id) {
12 } 14 }
13 15
14 IndexedDBCallbacksBase::~IndexedDBCallbacksBase() {} 16 IndexedDBCallbacksBase::~IndexedDBCallbacksBase() {}
15 17
16 IndexedDBTransactionCallbacks::IndexedDBTransactionCallbacks( 18 IndexedDBTransactionCallbacks::IndexedDBTransactionCallbacks(
(...skipping 17 matching lines...) Expand all
34 36
35 void IndexedDBTransactionCallbacks::onComplete() { 37 void IndexedDBTransactionCallbacks::onComplete() {
36 dispatcher_host_->Send( 38 dispatcher_host_->Send(
37 new IndexedDBMsg_TransactionCallbacksComplete(transaction_id_)); 39 new IndexedDBMsg_TransactionCallbacksComplete(transaction_id_));
38 } 40 }
39 41
40 void IndexedDBTransactionCallbacks::onTimeout() { 42 void IndexedDBTransactionCallbacks::onTimeout() {
41 dispatcher_host_->Send( 43 dispatcher_host_->Send(
42 new IndexedDBMsg_TransactionCallbacksTimeout(transaction_id_)); 44 new IndexedDBMsg_TransactionCallbacksTimeout(transaction_id_));
43 } 45 }
46
47 void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccess(
48 WebKit::WebIDBCursor* idb_object) {
49 int32 object_id = dispatcher_host()->Add(idb_object);
50 dispatcher_host()->Send(
51 new IndexedDBMsg_CallbacksSuccessIDBCursor(response_id(), object_id));
52 }
53
54 void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccess(
55 const WebKit::WebSerializedScriptValue& value) {
56 dispatcher_host()->Send(
57 new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
58 response_id(), SerializedScriptValue(value)));
59 }
60
61 void IndexedDBCallbacks<WebKit::WebIDBKey>::onSuccess(
62 const WebKit::WebIDBKey& value) {
63 dispatcher_host()->Send(
64 new IndexedDBMsg_CallbacksSuccessIndexedDBKey(
65 response_id(), IndexedDBKey(value)));
66 }
67
68 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess(
69 const WebKit::WebSerializedScriptValue& value) {
70 dispatcher_host()->Send(
71 new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
72 response_id(), SerializedScriptValue(value)));
73 }
OLDNEW
« no previous file with comments | « chrome/browser/in_process_webkit/indexed_db_callbacks.h ('k') | chrome/browser/notifications/desktop_notifications_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698