| 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 virtual ~IDBRequestBase() { } | 60 virtual ~IDBRequestBase() { } |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class IDBRequest : public IDBRequestBase, public ScriptWrappable, public EventTa
rgetWithInlineData, public ActiveDOMObject { | 63 class IDBRequest : public IDBRequestBase, public ScriptWrappable, public EventTa
rgetWithInlineData, public ActiveDOMObject { |
| 64 DEFINE_EVENT_TARGET_REFCOUNTING(IDBRequestBase); | 64 DEFINE_EVENT_TARGET_REFCOUNTING(IDBRequestBase); |
| 65 | 65 |
| 66 public: | 66 public: |
| 67 static PassRefPtr<IDBRequest> create(ExecutionContext*, PassRefPtr<IDBAny> s
ource, IDBTransaction*); | 67 static PassRefPtr<IDBRequest> create(ExecutionContext*, PassRefPtr<IDBAny> s
ource, IDBTransaction*); |
| 68 virtual ~IDBRequest(); | 68 virtual ~IDBRequest(); |
| 69 | 69 |
| 70 ScriptValue result(ExceptionState&); | 70 ScriptValue result(NewScriptState*, ExceptionState&); |
| 71 PassRefPtrWillBeRawPtr<DOMError> error(ExceptionState&) const; | 71 PassRefPtrWillBeRawPtr<DOMError> error(ExceptionState&) const; |
| 72 ScriptValue source(ExecutionContext*) const; | 72 ScriptValue source(NewScriptState*) const; |
| 73 PassRefPtr<IDBTransaction> transaction() const { return m_transaction; } | 73 PassRefPtr<IDBTransaction> transaction() const { return m_transaction; } |
| 74 | 74 |
| 75 bool isResultDirty() const { return m_resultDirty; } | 75 bool isResultDirty() const { return m_resultDirty; } |
| 76 PassRefPtr<IDBAny> resultAsAny() const { return m_result; } | 76 PassRefPtr<IDBAny> resultAsAny() const { return m_result; } |
| 77 | 77 |
| 78 // Requests made during index population are implementation details and so | 78 // Requests made during index population are implementation details and so |
| 79 // events should not be visible to script. | 79 // events should not be visible to script. |
| 80 void preventPropagation() { m_preventPropagation = true; } | 80 void preventPropagation() { m_preventPropagation = true; } |
| 81 | 81 |
| 82 // Defined in the IDL | 82 // Defined in the IDL |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 bool m_didFireUpgradeNeededEvent; | 175 bool m_didFireUpgradeNeededEvent; |
| 176 bool m_preventPropagation; | 176 bool m_preventPropagation; |
| 177 bool m_resultDirty; | 177 bool m_resultDirty; |
| 178 | 178 |
| 179 DOMRequestState m_requestState; | 179 DOMRequestState m_requestState; |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 } // namespace WebCore | 182 } // namespace WebCore |
| 183 | 183 |
| 184 #endif // IDBRequest_h | 184 #endif // IDBRequest_h |
| OLD | NEW |