| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "modules/indexeddb/IDBDatabaseCallbacks.h" | 29 #include "modules/indexeddb/IDBDatabaseCallbacks.h" |
| 30 #include <wtf/PassOwnPtr.h> | 30 #include <wtf/PassOwnPtr.h> |
| 31 | 31 |
| 32 namespace WebKit { | 32 namespace WebKit { |
| 33 | 33 |
| 34 class WebIDBDatabaseCallbacks; | 34 class WebIDBDatabaseCallbacks; |
| 35 | 35 |
| 36 class IDBDatabaseCallbacksProxy : public WebCore::IDBDatabaseCallbacks { | 36 class IDBDatabaseCallbacksProxy : public WebCore::IDBDatabaseCallbacks { |
| 37 public: | 37 public: |
| 38 static PassRefPtr<IDBDatabaseCallbacksProxy> create(PassOwnPtr<WebIDBDatabas
eCallbacks>); | 38 static IDBDatabaseCallbacksProxy* create(PassOwnPtr<WebIDBDatabaseCallbacks>
); |
| 39 virtual ~IDBDatabaseCallbacksProxy(); | 39 virtual ~IDBDatabaseCallbacksProxy(); |
| 40 | 40 |
| 41 virtual void onForcedClose(); | 41 virtual void onForcedClose(); |
| 42 virtual void onVersionChange(int64_t oldVersion, int64_t newVersion); | 42 virtual void onVersionChange(int64_t oldVersion, int64_t newVersion); |
| 43 | 43 |
| 44 virtual void onAbort(int64_t transactionId, PassRefPtr<WebCore::IDBDatabaseE
rror>); | 44 virtual void onAbort(int64_t transactionId, PassRefPtr<WebCore::IDBDatabaseE
rror>); |
| 45 virtual void onComplete(int64_t transactionId); | 45 virtual void onComplete(int64_t transactionId); |
| 46 | 46 |
| 47 virtual void trace(WebCore::Visitor*) OVERRIDE { } |
| 48 |
| 47 private: | 49 private: |
| 48 IDBDatabaseCallbacksProxy(PassOwnPtr<WebIDBDatabaseCallbacks>); | 50 IDBDatabaseCallbacksProxy(PassOwnPtr<WebIDBDatabaseCallbacks>); |
| 49 | 51 |
| 50 OwnPtr<WebIDBDatabaseCallbacks> m_callbacks; | 52 OwnPtr<WebIDBDatabaseCallbacks> m_callbacks; |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 } // namespace WebKit | 55 } // namespace WebKit |
| 54 | 56 |
| 55 #endif // IDBDatabaseCallbacksProxy_h | 57 #endif // IDBDatabaseCallbacksProxy_h |
| OLD | NEW |