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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void WebIDBCallbacksImpl::onSuccess(const WebIDBKey& key, const WebIDBKey& prima
ryKey, const WebData& value) | 107 void WebIDBCallbacksImpl::onSuccess(const WebIDBKey& key, const WebIDBKey& prima
ryKey, const WebData& value) |
108 { | 108 { |
109 m_callbacks->onSuccess(key, primaryKey, value); | 109 m_callbacks->onSuccess(key, primaryKey, value); |
110 } | 110 } |
111 | 111 |
112 void WebIDBCallbacksImpl::onBlocked(long long oldVersion) | 112 void WebIDBCallbacksImpl::onBlocked(long long oldVersion) |
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) | 117 void WebIDBCallbacksImpl::onUpgradeNeeded(long long oldVersion, WebIDBDatabase*
database, const WebIDBMetadata& metadata, DataLoss dataLoss) |
118 { | 118 { |
119 m_databaseProxy = IDBDatabaseBackendProxy::create(adoptPtr(database)); | 119 m_databaseProxy = IDBDatabaseBackendProxy::create(adoptPtr(database)); |
120 m_callbacks->onUpgradeNeeded(oldVersion, m_databaseProxy, metadata); | 120 m_callbacks->onUpgradeNeeded(oldVersion, m_databaseProxy, metadata, dataLoss
); |
121 } | 121 } |
122 | 122 |
123 } // namespace WebKit | 123 } // namespace WebKit |
OLD | NEW |