| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 ExecutionContext* executionContext() const; | 89 ExecutionContext* executionContext() const; |
| 90 void setFrontend(DatabaseBase* frontend) { m_frontend = frontend; } | 90 void setFrontend(DatabaseBase* frontend) { m_frontend = frontend; } |
| 91 | 91 |
| 92 protected: | 92 protected: |
| 93 friend class ChangeVersionWrapper; | 93 friend class ChangeVersionWrapper; |
| 94 friend class SQLStatementBackend; | 94 friend class SQLStatementBackend; |
| 95 friend class SQLStatementSync; | 95 friend class SQLStatementSync; |
| 96 friend class SQLTransactionBackend; | 96 friend class SQLTransactionBackend; |
| 97 friend class SQLTransactionBackendSync; | 97 friend class SQLTransactionBackendSync; |
| 98 | 98 |
| 99 DatabaseBackendBase(PassRefPtr<DatabaseContext>, const String& name, const S
tring& expectedVersion, | 99 DatabaseBackendBase(DatabaseContext*, const String& name, const String& expe
ctedVersion, |
| 100 const String& displayName, unsigned long estimatedSize, DatabaseType); | 100 const String& displayName, unsigned long estimatedSize, DatabaseType); |
| 101 | 101 |
| 102 void closeDatabase(); | 102 void closeDatabase(); |
| 103 | 103 |
| 104 virtual bool openAndVerifyVersion(bool setVersionInNewDatabase, DatabaseErro
r&, String& errorMessage) = 0; | 104 virtual bool openAndVerifyVersion(bool setVersionInNewDatabase, DatabaseErro
r&, String& errorMessage) = 0; |
| 105 virtual bool performOpenAndVerify(bool shouldSetVersionInNewDatabase, Databa
seError&, String& errorMessage); | 105 virtual bool performOpenAndVerify(bool shouldSetVersionInNewDatabase, Databa
seError&, String& errorMessage); |
| 106 | 106 |
| 107 bool getVersionFromDatabase(String& version, bool shouldCacheVersion = true)
; | 107 bool getVersionFromDatabase(String& version, bool shouldCacheVersion = true)
; |
| 108 bool setVersionInDatabase(const String& version, bool shouldCacheVersion = t
rue); | 108 bool setVersionInDatabase(const String& version, bool shouldCacheVersion = t
rue); |
| 109 void setExpectedVersion(const String&); | 109 void setExpectedVersion(const String&); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |