| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 void reportOpenDatabaseResult(int errorSite, int webSqlErrorCode, int sqlite
ErrorCode); | 115 void reportOpenDatabaseResult(int errorSite, int webSqlErrorCode, int sqlite
ErrorCode); |
| 116 void reportChangeVersionResult(int errorSite, int webSqlErrorCode, int sqlit
eErrorCode); | 116 void reportChangeVersionResult(int errorSite, int webSqlErrorCode, int sqlit
eErrorCode); |
| 117 void reportStartTransactionResult(int errorSite, int webSqlErrorCode, int sq
liteErrorCode); | 117 void reportStartTransactionResult(int errorSite, int webSqlErrorCode, int sq
liteErrorCode); |
| 118 void reportCommitTransactionResult(int errorSite, int webSqlErrorCode, int s
qliteErrorCode); | 118 void reportCommitTransactionResult(int errorSite, int webSqlErrorCode, int s
qliteErrorCode); |
| 119 void reportExecuteStatementResult(int errorSite, int webSqlErrorCode, int sq
liteErrorCode); | 119 void reportExecuteStatementResult(int errorSite, int webSqlErrorCode, int sq
liteErrorCode); |
| 120 void reportVacuumDatabaseResult(int sqliteErrorCode); | 120 void reportVacuumDatabaseResult(int sqliteErrorCode); |
| 121 void logErrorMessage(const String&); | 121 void logErrorMessage(const String&); |
| 122 static const char* databaseInfoTableName(); | 122 static const char* databaseInfoTableName(); |
| 123 | 123 |
| 124 RefPtr<SecurityOrigin> m_contextThreadSecurityOrigin; | 124 RefPtr<SecurityOrigin> m_contextThreadSecurityOrigin; |
| 125 RefPtr<DatabaseContext> m_databaseContext; // Associated with m_executionCon
text. | 125 RefPtrWillBeMember<DatabaseContext> m_databaseContext; // Associated with m_
executionContext. |
| 126 | 126 |
| 127 String m_name; | 127 String m_name; |
| 128 String m_expectedVersion; | 128 String m_expectedVersion; |
| 129 String m_displayName; | 129 String m_displayName; |
| 130 unsigned long m_estimatedSize; | 130 unsigned long m_estimatedSize; |
| 131 String m_filename; | 131 String m_filename; |
| 132 | 132 |
| 133 DatabaseBase* m_frontend; | 133 DatabaseBase* m_frontend; |
| 134 | 134 |
| 135 #if !LOG_DISABLED || !ERROR_DISABLED | 135 #if !LOG_DISABLED || !ERROR_DISABLED |
| 136 String databaseDebugName() const { return m_contextThreadSecurityOrigin->toS
tring() + "::" + m_name; } | 136 String databaseDebugName() const { return m_contextThreadSecurityOrigin->toS
tring() + "::" + m_name; } |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 private: | 139 private: |
| 140 DatabaseGuid m_guid; | 140 DatabaseGuid m_guid; |
| 141 bool m_opened; | 141 bool m_opened; |
| 142 bool m_new; | 142 bool m_new; |
| 143 const bool m_isSyncDatabase; | 143 const bool m_isSyncDatabase; |
| 144 | 144 |
| 145 SQLiteDatabase m_sqliteDatabase; | 145 SQLiteDatabase m_sqliteDatabase; |
| 146 | 146 |
| 147 RefPtrWillBeMember<DatabaseAuthorizer> m_databaseAuthorizer; | 147 RefPtrWillBeMember<DatabaseAuthorizer> m_databaseAuthorizer; |
| 148 | 148 |
| 149 friend class DatabaseServer; | 149 friend class DatabaseServer; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace WebCore | 152 } // namespace WebCore |
| 153 | 153 |
| 154 #endif // DatabaseBackendBase_h | 154 #endif // DatabaseBackendBase_h |
| OLD | NEW |