| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void inProgressTransactionCompleted(); | 63 void inProgressTransactionCompleted(); |
| 64 | 64 |
| 65 SQLTransactionClient* transactionClient() const; | 65 SQLTransactionClient* transactionClient() const; |
| 66 SQLTransactionCoordinator* transactionCoordinator() const; | 66 SQLTransactionCoordinator* transactionCoordinator() const; |
| 67 | 67 |
| 68 // Direct support for the DOM API | 68 // Direct support for the DOM API |
| 69 String version() const; | 69 String version() const; |
| 70 void changeVersion( | 70 void changeVersion( |
| 71 const String& oldVersion, | 71 const String& oldVersion, |
| 72 const String& newVersion, | 72 const String& newVersion, |
| 73 PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, | 73 SQLTransactionCallback*, |
| 74 PassOwnPtrWillBeRawPtr<SQLTransactionErrorCallback>, | 74 SQLTransactionErrorCallback*, |
| 75 PassOwnPtrWillBeRawPtr<VoidCallback> successCallback); | 75 VoidCallback* successCallback); |
| 76 void transaction( | 76 void transaction( |
| 77 PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, | 77 SQLTransactionCallback*, |
| 78 PassOwnPtrWillBeRawPtr<SQLTransactionErrorCallback>, | 78 SQLTransactionErrorCallback*, |
| 79 PassOwnPtrWillBeRawPtr<VoidCallback> successCallback); | 79 VoidCallback* successCallback); |
| 80 void readTransaction( | 80 void readTransaction( |
| 81 PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, | 81 SQLTransactionCallback*, |
| 82 PassOwnPtrWillBeRawPtr<SQLTransactionErrorCallback>, | 82 SQLTransactionErrorCallback*, |
| 83 PassOwnPtrWillBeRawPtr<VoidCallback> successCallback); | 83 VoidCallback* successCallback); |
| 84 | 84 |
| 85 bool opened() const { return m_opened; } | 85 bool opened() const { return m_opened; } |
| 86 bool isNew() const { return m_new; } | 86 bool isNew() const { return m_new; } |
| 87 | 87 |
| 88 SecurityOrigin* securityOrigin() const; | 88 SecurityOrigin* securityOrigin() const; |
| 89 String stringIdentifier() const; | 89 String stringIdentifier() const; |
| 90 String displayName() const; | 90 String displayName() const; |
| 91 unsigned long estimatedSize() const; | 91 unsigned long estimatedSize() const; |
| 92 String fileName() const; | 92 String fileName() const; |
| 93 SQLiteDatabase& sqliteDatabase() { return m_sqliteDatabase; } | 93 SQLiteDatabase& sqliteDatabase() { return m_sqliteDatabase; } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 bool getVersionFromDatabase(String& version, bool shouldCacheVersion = true)
; | 126 bool getVersionFromDatabase(String& version, bool shouldCacheVersion = true)
; |
| 127 bool setVersionInDatabase(const String& version, bool shouldCacheVersion = t
rue); | 127 bool setVersionInDatabase(const String& version, bool shouldCacheVersion = t
rue); |
| 128 void setExpectedVersion(const String&); | 128 void setExpectedVersion(const String&); |
| 129 const String& expectedVersion() const { return m_expectedVersion; } | 129 const String& expectedVersion() const { return m_expectedVersion; } |
| 130 String getCachedVersion()const; | 130 String getCachedVersion()const; |
| 131 void setCachedVersion(const String&); | 131 void setCachedVersion(const String&); |
| 132 bool getActualVersionForTransaction(String& version); | 132 bool getActualVersionForTransaction(String& version); |
| 133 | 133 |
| 134 void runTransaction( | 134 void runTransaction( |
| 135 PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, | 135 SQLTransactionCallback*, |
| 136 PassOwnPtrWillBeRawPtr<SQLTransactionErrorCallback>, | 136 SQLTransactionErrorCallback*, |
| 137 PassOwnPtrWillBeRawPtr<VoidCallback> successCallback, | 137 VoidCallback* successCallback, |
| 138 bool readOnly, | 138 bool readOnly, |
| 139 const ChangeVersionData* = 0); | 139 const ChangeVersionData* = 0); |
| 140 Vector<String> performGetTableNames(); | 140 Vector<String> performGetTableNames(); |
| 141 | 141 |
| 142 void reportOpenDatabaseResult(int errorSite, int webSqlErrorCode, int sqlite
ErrorCode); | 142 void reportOpenDatabaseResult(int errorSite, int webSqlErrorCode, int sqlite
ErrorCode); |
| 143 void reportChangeVersionResult(int errorSite, int webSqlErrorCode, int sqlit
eErrorCode); | 143 void reportChangeVersionResult(int errorSite, int webSqlErrorCode, int sqlit
eErrorCode); |
| 144 void reportStartTransactionResult(int errorSite, int webSqlErrorCode, int sq
liteErrorCode); | 144 void reportStartTransactionResult(int errorSite, int webSqlErrorCode, int sq
liteErrorCode); |
| 145 void reportCommitTransactionResult(int errorSite, int webSqlErrorCode, int s
qliteErrorCode); | 145 void reportCommitTransactionResult(int errorSite, int webSqlErrorCode, int s
qliteErrorCode); |
| 146 void reportExecuteStatementResult(int errorSite, int webSqlErrorCode, int sq
liteErrorCode); | 146 void reportExecuteStatementResult(int errorSite, int webSqlErrorCode, int sq
liteErrorCode); |
| 147 void reportVacuumDatabaseResult(int sqliteErrorCode); | 147 void reportVacuumDatabaseResult(int sqliteErrorCode); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 177 friend class ChangeVersionWrapper; | 177 friend class ChangeVersionWrapper; |
| 178 friend class DatabaseManager; | 178 friend class DatabaseManager; |
| 179 friend class SQLStatementBackend; | 179 friend class SQLStatementBackend; |
| 180 friend class SQLTransaction; | 180 friend class SQLTransaction; |
| 181 friend class SQLTransactionBackend; | 181 friend class SQLTransactionBackend; |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 } // namespace blink | 184 } // namespace blink |
| 185 | 185 |
| 186 #endif // Database_h | 186 #endif // Database_h |
| OLD | NEW |