| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 86     String m_identifier; | 86     String m_identifier; | 
| 87     RefPtr<IDBFactoryBackendImpl> m_factory; | 87     RefPtr<IDBFactoryBackendImpl> m_factory; | 
| 88     OwnPtr<LevelDBDatabase> m_db; | 88     OwnPtr<LevelDBDatabase> m_db; | 
| 89     OwnPtr<LevelDBComparator> m_comparator; | 89     OwnPtr<LevelDBComparator> m_comparator; | 
| 90     RefPtr<LevelDBTransaction> m_currentTransaction; | 90     RefPtr<LevelDBTransaction> m_currentTransaction; | 
| 91 | 91 | 
| 92     class Transaction : public IDBBackingStore::Transaction { | 92     class Transaction : public IDBBackingStore::Transaction { | 
| 93     public: | 93     public: | 
| 94         static PassRefPtr<Transaction> create(IDBLevelDBBackingStore*); | 94         static PassRefPtr<Transaction> create(IDBLevelDBBackingStore*); | 
| 95         virtual void begin(); | 95         virtual void begin(); | 
| 96         virtual void commit(); | 96         virtual bool commit(); | 
| 97         virtual void rollback(); | 97         virtual void rollback(); | 
| 98 | 98 | 
| 99     private: | 99     private: | 
| 100         Transaction(IDBLevelDBBackingStore*); | 100         Transaction(IDBLevelDBBackingStore*); | 
| 101         IDBLevelDBBackingStore* m_backingStore; | 101         IDBLevelDBBackingStore* m_backingStore; | 
| 102     }; | 102     }; | 
| 103 }; | 103 }; | 
| 104 | 104 | 
| 105 } // namespace WebCore | 105 } // namespace WebCore | 
| 106 | 106 | 
| 107 | 107 | 
| 108 #endif // USE(LEVELDB) | 108 #endif // USE(LEVELDB) | 
| 109 #endif // ENABLE(INDEXED_DATABASE) | 109 #endif // ENABLE(INDEXED_DATABASE) | 
| 110 | 110 | 
| 111 #endif // IDBLevelDBBackingStore_h | 111 #endif // IDBLevelDBBackingStore_h | 
| OLD | NEW | 
|---|