| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * 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 * | 10 * |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 using blink::WebData; | 44 using blink::WebData; |
| 45 using blink::WebIDBCursor; | 45 using blink::WebIDBCursor; |
| 46 using blink::WebIDBDatabase; | 46 using blink::WebIDBDatabase; |
| 47 using blink::WebIDBDatabaseError; | 47 using blink::WebIDBDatabaseError; |
| 48 using blink::WebIDBIndex; | 48 using blink::WebIDBIndex; |
| 49 using blink::WebIDBKey; | 49 using blink::WebIDBKey; |
| 50 using blink::WebIDBKeyPath; | 50 using blink::WebIDBKeyPath; |
| 51 using blink::WebIDBMetadata; | 51 using blink::WebIDBMetadata; |
| 52 using blink::WebVector; | 52 using blink::WebVector; |
| 53 | 53 |
| 54 namespace WebCore { | 54 namespace blink { |
| 55 | 55 |
| 56 // static | 56 // static |
| 57 PassOwnPtr<WebIDBCallbacksImpl> WebIDBCallbacksImpl::create(IDBRequest* request) | 57 PassOwnPtr<WebIDBCallbacksImpl> WebIDBCallbacksImpl::create(IDBRequest* request) |
| 58 { | 58 { |
| 59 return adoptPtr(new WebIDBCallbacksImpl(request)); | 59 return adoptPtr(new WebIDBCallbacksImpl(request)); |
| 60 } | 60 } |
| 61 | 61 |
| 62 WebIDBCallbacksImpl::WebIDBCallbacksImpl(IDBRequest* request) | 62 WebIDBCallbacksImpl::WebIDBCallbacksImpl(IDBRequest* request) |
| 63 : m_request(request) | 63 : m_request(request) |
| 64 { | 64 { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 { | 133 { |
| 134 m_request->onBlocked(oldVersion); | 134 m_request->onBlocked(oldVersion); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void WebIDBCallbacksImpl::onUpgradeNeeded(long long oldVersion, WebIDBDatabase*
database, const WebIDBMetadata& metadata, unsigned short dataLoss, blink::WebStr
ing dataLossMessage) | 137 void WebIDBCallbacksImpl::onUpgradeNeeded(long long oldVersion, WebIDBDatabase*
database, const WebIDBMetadata& metadata, unsigned short dataLoss, blink::WebStr
ing dataLossMessage) |
| 138 { | 138 { |
| 139 m_request->onUpgradeNeeded(oldVersion, adoptPtr(database), metadata, static_
cast<blink::WebIDBDataLoss>(dataLoss), dataLossMessage); | 139 m_request->onUpgradeNeeded(oldVersion, adoptPtr(database), metadata, static_
cast<blink::WebIDBDataLoss>(dataLoss), dataLossMessage); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace blink | 142 } // namespace blink |
| OLD | NEW |