OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/indexed_db/indexed_db_database_callbacks.h" |
6 #include "content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h" | 6 #include "content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h" |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
10 IndexedDBDatabaseCallbacksWrapper::IndexedDBDatabaseCallbacksWrapper( | 10 IndexedDBDatabaseCallbacksWrapper::IndexedDBDatabaseCallbacksWrapper( |
11 IndexedDBDatabaseCallbacks* callbacks) | 11 IndexedDBDatabaseCallbacks* callbacks) |
12 : callbacks_(callbacks) {} | 12 : callbacks_(callbacks) {} |
13 IndexedDBDatabaseCallbacksWrapper::~IndexedDBDatabaseCallbacksWrapper() {} | 13 IndexedDBDatabaseCallbacksWrapper::~IndexedDBDatabaseCallbacksWrapper() {} |
14 | 14 |
15 void IndexedDBDatabaseCallbacksWrapper::OnForcedClose() { | 15 void IndexedDBDatabaseCallbacksWrapper::OnForcedClose() { |
(...skipping 18 matching lines...) Expand all Loading... |
34 transaction_id, | 34 transaction_id, |
35 WebKit::WebIDBDatabaseError(error.code(), error.message())); | 35 WebKit::WebIDBDatabaseError(error.code(), error.message())); |
36 } | 36 } |
37 void IndexedDBDatabaseCallbacksWrapper::OnComplete(int64 transaction_id) { | 37 void IndexedDBDatabaseCallbacksWrapper::OnComplete(int64 transaction_id) { |
38 if (!callbacks_) | 38 if (!callbacks_) |
39 return; | 39 return; |
40 callbacks_->onComplete(transaction_id); | 40 callbacks_->onComplete(transaction_id); |
41 } | 41 } |
42 | 42 |
43 } // namespace content | 43 } // namespace content |
OLD | NEW |