| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * 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 17 matching lines...) Expand all Loading... |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef SQLTransactionSync_h | 32 #ifndef SQLTransactionSync_h |
| 33 #define SQLTransactionSync_h | 33 #define SQLTransactionSync_h |
| 34 | 34 |
| 35 #include "bindings/core/v8/ScriptWrappable.h" | 35 #include "bindings/core/v8/ScriptWrappable.h" |
| 36 #include "modules/webdatabase/SQLTransactionBackendSync.h" | 36 #include "modules/webdatabase/SQLTransactionBackendSync.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace blink { |
| 39 | 39 |
| 40 // Instances of this class should be created and used only on the worker's conte
xt thread. | 40 // Instances of this class should be created and used only on the worker's conte
xt thread. |
| 41 class SQLTransactionSync FINAL : public SQLTransactionBackendSync, public Script
Wrappable { | 41 class SQLTransactionSync FINAL : public SQLTransactionBackendSync, public Script
Wrappable { |
| 42 public: | 42 public: |
| 43 static PassRefPtrWillBeRawPtr<SQLTransactionSync> create(DatabaseSync*, Pass
OwnPtr<SQLTransactionSyncCallback>, bool readOnly = false); | 43 static PassRefPtrWillBeRawPtr<SQLTransactionSync> create(DatabaseSync*, Pass
OwnPtr<SQLTransactionSyncCallback>, bool readOnly = false); |
| 44 | 44 |
| 45 static SQLTransactionSync* from(SQLTransactionBackendSync*); | 45 static SQLTransactionSync* from(SQLTransactionBackendSync*); |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 SQLTransactionSync(DatabaseSync*, PassOwnPtr<SQLTransactionSyncCallback>, bo
ol readOnly); | 48 SQLTransactionSync(DatabaseSync*, PassOwnPtr<SQLTransactionSyncCallback>, bo
ol readOnly); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace WebCore | 51 } // namespace blink |
| 52 | 52 |
| 53 #endif // SQLTransactionSync_h | 53 #endif // SQLTransactionSync_h |
| OLD | NEW |