Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Side by Side Diff: Source/modules/indexeddb/IDBRequest.h

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698