| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2013 Apple 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 13 matching lines...) Expand all Loading... |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef Database_h | 29 #ifndef Database_h |
| 30 #define Database_h | 30 #define Database_h |
| 31 | 31 |
| 32 #include "bindings/core/v8/ScriptWrappable.h" | 32 #include "bindings/core/v8/ScriptWrappable.h" |
| 33 #include "modules/webdatabase/DatabaseBackend.h" | 33 #include "modules/webdatabase/DatabaseBackend.h" |
| 34 #include "modules/webdatabase/DatabaseBase.h" | |
| 35 #include "modules/webdatabase/DatabaseBasicTypes.h" | 34 #include "modules/webdatabase/DatabaseBasicTypes.h" |
| 36 #include "modules/webdatabase/DatabaseError.h" | 35 #include "modules/webdatabase/DatabaseError.h" |
| 37 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
| 38 | 37 |
| 39 namespace blink { | 38 namespace blink { |
| 40 | 39 |
| 41 class ChangeVersionData; | 40 class ChangeVersionData; |
| 42 class DatabaseCallback; | 41 class DatabaseCallback; |
| 43 class DatabaseContext; | 42 class DatabaseContext; |
| 44 class SecurityOrigin; | 43 class SecurityOrigin; |
| 45 class SQLTransaction; | 44 class SQLTransaction; |
| 46 class SQLTransactionBackend; | 45 class SQLTransactionBackend; |
| 47 class SQLTransactionCallback; | 46 class SQLTransactionCallback; |
| 48 class SQLTransactionErrorCallback; | 47 class SQLTransactionErrorCallback; |
| 49 class VoidCallback; | 48 class VoidCallback; |
| 50 | 49 |
| 51 class Database FINAL : public DatabaseBackend, public DatabaseBase, public Scrip
tWrappable { | 50 class Database FINAL : public DatabaseBackend, public ScriptWrappable { |
| 52 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
| 53 public: | 52 public: |
| 54 virtual ~Database(); | 53 virtual ~Database(); |
| 55 virtual void trace(Visitor*) OVERRIDE; | 54 virtual void trace(Visitor*) OVERRIDE; |
| 56 | 55 |
| 57 // Direct support for the DOM API | 56 // Direct support for the DOM API |
| 58 virtual String version() const OVERRIDE; | 57 virtual String version() const OVERRIDE; |
| 59 void changeVersion(const String& oldVersion, const String& newVersion, PassO
wnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwnPtrWillBeRawPtr<SQLTransaction
ErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallback> successCallback); | 58 void changeVersion(const String& oldVersion, const String& newVersion, PassO
wnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwnPtrWillBeRawPtr<SQLTransaction
ErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallback> successCallback); |
| 60 void transaction(PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwnPtrW
illBeRawPtr<SQLTransactionErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallback> s
uccessCallback); | 59 void transaction(PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwnPtrW
illBeRawPtr<SQLTransactionErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallback> s
uccessCallback); |
| 61 void readTransaction(PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwn
PtrWillBeRawPtr<SQLTransactionErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallbac
k> successCallback); | 60 void readTransaction(PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwn
PtrWillBeRawPtr<SQLTransactionErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallbac
k> successCallback); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 92 friend class DatabaseManager; | 91 friend class DatabaseManager; |
| 93 friend class DatabaseServer; // FIXME: remove this when the backend has been
split out. | 92 friend class DatabaseServer; // FIXME: remove this when the backend has been
split out. |
| 94 friend class DatabaseBackend; // FIXME: remove this when the backend has bee
n split out. | 93 friend class DatabaseBackend; // FIXME: remove this when the backend has bee
n split out. |
| 95 friend class SQLStatement; | 94 friend class SQLStatement; |
| 96 friend class SQLTransaction; | 95 friend class SQLTransaction; |
| 97 }; | 96 }; |
| 98 | 97 |
| 99 } // namespace blink | 98 } // namespace blink |
| 100 | 99 |
| 101 #endif // Database_h | 100 #endif // Database_h |
| OLD | NEW |