OLD | NEW |
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_database_callbacks.h" | 5 #include "content/browser/in_process_webkit/indexed_db_database_callbacks.h" |
6 | 6 |
7 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 7 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
8 #include "content/common/indexed_db_messages.h" | 8 #include "content/common/indexed_db_messages.h" |
9 | 9 |
10 IndexedDBDatabaseCallbacks::IndexedDBDatabaseCallbacks( | 10 IndexedDBDatabaseCallbacks::IndexedDBDatabaseCallbacks( |
11 IndexedDBDispatcherHost* dispatcher_host, | 11 IndexedDBDispatcherHost* dispatcher_host, |
| 12 int thread_id, |
12 int database_id) | 13 int database_id) |
13 : dispatcher_host_(dispatcher_host), | 14 : dispatcher_host_(dispatcher_host), |
| 15 thread_id_(thread_id), |
14 database_id_(database_id) { | 16 database_id_(database_id) { |
15 } | 17 } |
16 | 18 |
17 IndexedDBDatabaseCallbacks::~IndexedDBDatabaseCallbacks() { | 19 IndexedDBDatabaseCallbacks::~IndexedDBDatabaseCallbacks() { |
18 } | 20 } |
19 | 21 |
20 void IndexedDBDatabaseCallbacks::onVersionChange( | 22 void IndexedDBDatabaseCallbacks::onVersionChange( |
21 const WebKit::WebString& requested_version) { | 23 const WebKit::WebString& requested_version) { |
22 dispatcher_host_->Send( | 24 dispatcher_host_->Send( |
23 new IndexedDBMsg_DatabaseCallbacksVersionChange( | 25 new IndexedDBMsg_DatabaseCallbacksVersionChange(thread_id_, database_id_, |
24 database_id_, requested_version)); | 26 requested_version)); |
25 } | 27 } |
OLD | NEW |