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 21 matching lines...) Expand all Loading... |
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 blink { | 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 DEFINE_WRAPPERTYPEINFO(); |
42 public: | 43 public: |
43 static PassRefPtrWillBeRawPtr<SQLTransactionSync> create(DatabaseSync*, Pass
OwnPtrWillBeRawPtr<SQLTransactionSyncCallback>, bool readOnly = false); | 44 static PassRefPtrWillBeRawPtr<SQLTransactionSync> create(DatabaseSync*, Pass
OwnPtrWillBeRawPtr<SQLTransactionSyncCallback>, bool readOnly = false); |
44 | 45 |
45 static SQLTransactionSync* from(SQLTransactionBackendSync*); | 46 static SQLTransactionSync* from(SQLTransactionBackendSync*); |
46 | 47 |
47 private: | 48 private: |
48 SQLTransactionSync(DatabaseSync*, PassOwnPtrWillBeRawPtr<SQLTransactionSyncC
allback>, bool readOnly); | 49 SQLTransactionSync(DatabaseSync*, PassOwnPtrWillBeRawPtr<SQLTransactionSyncC
allback>, bool readOnly); |
49 }; | 50 }; |
50 | 51 |
51 } // namespace blink | 52 } // namespace blink |
52 | 53 |
53 #endif // SQLTransactionSync_h | 54 #endif // SQLTransactionSync_h |
OLD | NEW |