OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 public: | 60 public: |
61 virtual void deref() = 0; | 61 virtual void deref() = 0; |
62 | 62 |
63 protected: | 63 protected: |
64 virtual ~IDBRequestBase() { } | 64 virtual ~IDBRequestBase() { } |
65 }; | 65 }; |
66 #endif | 66 #endif |
67 | 67 |
68 class IDBRequest : public IDBRequestBase, public ScriptWrappable, public EventTa
rgetWithInlineData, public ActiveDOMObject { | 68 class IDBRequest : public IDBRequestBase, public ScriptWrappable, public EventTa
rgetWithInlineData, public ActiveDOMObject { |
69 DEFINE_EVENT_TARGET_REFCOUNTING(IDBRequestBase); | 69 DEFINE_EVENT_TARGET_REFCOUNTING(IDBRequestBase); |
70 | 70 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBRequest); |
71 public: | 71 public: |
72 static PassRefPtrWillBeRawPtr<IDBRequest> create(ExecutionContext*, PassRefP
trWillBeRawPtr<IDBAny> source, IDBTransaction*); | 72 static PassRefPtrWillBeRawPtr<IDBRequest> create(ExecutionContext*, PassRefP
trWillBeRawPtr<IDBAny> source, IDBTransaction*); |
73 virtual ~IDBRequest(); | 73 virtual ~IDBRequest(); |
74 virtual void trace(Visitor*); | 74 virtual void trace(Visitor*) OVERRIDE; |
75 | 75 |
76 ScriptValue result(ExceptionState&); | 76 ScriptValue result(ExceptionState&); |
77 PassRefPtrWillBeRawPtr<DOMError> error(ExceptionState&) const; | 77 PassRefPtrWillBeRawPtr<DOMError> error(ExceptionState&) const; |
78 ScriptValue source() const; | 78 ScriptValue source() const; |
79 IDBTransaction* transaction() const { return m_transaction.get(); } | 79 IDBTransaction* transaction() const { return m_transaction.get(); } |
80 | 80 |
81 bool isResultDirty() const { return m_resultDirty; } | 81 bool isResultDirty() const { return m_resultDirty; } |
82 PassRefPtrWillBeRawPtr<IDBAny> resultAsAny() const { return m_result; } | 82 PassRefPtrWillBeRawPtr<IDBAny> resultAsAny() const { return m_result; } |
83 | 83 |
84 // Requests made during index population are implementation details and so | 84 // Requests made during index population are implementation details and so |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo; | 185 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo; |
186 | 186 |
187 bool m_didFireUpgradeNeededEvent; | 187 bool m_didFireUpgradeNeededEvent; |
188 bool m_preventPropagation; | 188 bool m_preventPropagation; |
189 bool m_resultDirty; | 189 bool m_resultDirty; |
190 }; | 190 }; |
191 | 191 |
192 } // namespace WebCore | 192 } // namespace WebCore |
193 | 193 |
194 #endif // IDBRequest_h | 194 #endif // IDBRequest_h |
OLD | NEW |