| 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 30 matching lines...) Expand all Loading... |
| 41 #include "modules/indexeddb/IDBAny.h" | 41 #include "modules/indexeddb/IDBAny.h" |
| 42 #include "modules/indexeddb/IDBCallbacks.h" | 42 #include "modules/indexeddb/IDBCallbacks.h" |
| 43 #include "modules/indexeddb/IDBCursor.h" | 43 #include "modules/indexeddb/IDBCursor.h" |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace WebCore { |
| 46 | 46 |
| 47 class IDBTransaction; | 47 class IDBTransaction; |
| 48 | 48 |
| 49 typedef int ExceptionCode; | 49 typedef int ExceptionCode; |
| 50 | 50 |
| 51 class IDBRequest : public ScriptWrappable, public IDBCallbacks, public EventTarg
et, public ActiveDOMObject { | 51 class IDBRequest : public EventTarget, public ScriptWrappable, public IDBCallbac
ks, public ActiveDOMObject { |
| 52 public: | 52 public: |
| 53 static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB
Any> source, IDBTransaction*); | 53 static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB
Any> source, IDBTransaction*); |
| 54 static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB
Any> source, IDBDatabaseBackendInterface::TaskType, IDBTransaction*); | 54 static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB
Any> source, IDBDatabaseBackendInterface::TaskType, IDBTransaction*); |
| 55 virtual ~IDBRequest(); | 55 virtual ~IDBRequest(); |
| 56 | 56 |
| 57 PassRefPtr<IDBAny> result(ExceptionCode&) const; | 57 PassRefPtr<IDBAny> result(ExceptionCode&) const; |
| 58 PassRefPtr<DOMError> error(ExceptionCode&) const; | 58 PassRefPtr<DOMError> error(ExceptionCode&) const; |
| 59 PassRefPtr<IDBAny> source() const; | 59 PassRefPtr<IDBAny> source() const; |
| 60 PassRefPtr<IDBTransaction> transaction() const; | 60 PassRefPtr<IDBTransaction> transaction() const; |
| 61 void preventPropagation() { m_preventPropagation = true; } | 61 void preventPropagation() { m_preventPropagation = true; } |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 bool m_didFireUpgradeNeededEvent; | 151 bool m_didFireUpgradeNeededEvent; |
| 152 bool m_preventPropagation; | 152 bool m_preventPropagation; |
| 153 | 153 |
| 154 EventTargetData m_eventTargetData; | 154 EventTargetData m_eventTargetData; |
| 155 DOMRequestState m_requestState; | 155 DOMRequestState m_requestState; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace WebCore | 158 } // namespace WebCore |
| 159 | 159 |
| 160 #endif // IDBRequest_h | 160 #endif // IDBRequest_h |
| OLD | NEW |