| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "public/platform/WebIDBKey.h" | 33 #include "public/platform/WebIDBKey.h" |
| 34 #include "IDBCursorBackendProxy.h" | 34 #include "IDBCursorBackendProxy.h" |
| 35 #include "IDBDatabaseBackendProxy.h" | 35 #include "IDBDatabaseBackendProxy.h" |
| 36 #include "core/dom/DOMError.h" | 36 #include "core/dom/DOMError.h" |
| 37 #include "modules/indexeddb/IDBCallbacks.h" | 37 #include "modules/indexeddb/IDBCallbacks.h" |
| 38 #include "modules/indexeddb/IDBKey.h" | 38 #include "modules/indexeddb/IDBKey.h" |
| 39 #include "modules/indexeddb/IDBMetadata.h" | 39 #include "modules/indexeddb/IDBMetadata.h" |
| 40 | 40 |
| 41 using namespace WebCore; | 41 using namespace WebCore; |
| 42 | 42 |
| 43 namespace WebKit { | 43 namespace blink { |
| 44 | 44 |
| 45 WebIDBCallbacksImpl::WebIDBCallbacksImpl(PassRefPtr<IDBCallbacks> callbacks) | 45 WebIDBCallbacksImpl::WebIDBCallbacksImpl(PassRefPtr<IDBCallbacks> callbacks) |
| 46 : m_callbacks(callbacks) | 46 : m_callbacks(callbacks) |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| 50 WebIDBCallbacksImpl::~WebIDBCallbacksImpl() | 50 WebIDBCallbacksImpl::~WebIDBCallbacksImpl() |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 { | 113 { |
| 114 m_callbacks->onBlocked(oldVersion); | 114 m_callbacks->onBlocked(oldVersion); |
| 115 } | 115 } |
| 116 | 116 |
| 117 void WebIDBCallbacksImpl::onUpgradeNeeded(long long oldVersion, WebIDBDatabase*
database, const WebIDBMetadata& metadata, DataLoss dataLoss, WebString dataLossM
essage) | 117 void WebIDBCallbacksImpl::onUpgradeNeeded(long long oldVersion, WebIDBDatabase*
database, const WebIDBMetadata& metadata, DataLoss dataLoss, WebString dataLossM
essage) |
| 118 { | 118 { |
| 119 m_databaseProxy = IDBDatabaseBackendProxy::create(adoptPtr(database)); | 119 m_databaseProxy = IDBDatabaseBackendProxy::create(adoptPtr(database)); |
| 120 m_callbacks->onUpgradeNeeded(oldVersion, m_databaseProxy, metadata, dataLoss
, dataLossMessage); | 120 m_callbacks->onUpgradeNeeded(oldVersion, m_databaseProxy, metadata, dataLoss
, dataLossMessage); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace WebKit | 123 } // namespace blink |
| OLD | NEW |