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

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

Issue 329853004: Remove RefCountedGarbageCollected from EventTarget objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "public/platform/WebIDBCursor.h" 46 #include "public/platform/WebIDBCursor.h"
47 47
48 namespace WebCore { 48 namespace WebCore {
49 49
50 class ExceptionState; 50 class ExceptionState;
51 class IDBCursor; 51 class IDBCursor;
52 struct IDBDatabaseMetadata; 52 struct IDBDatabaseMetadata;
53 class SharedBuffer; 53 class SharedBuffer;
54 54
55 class IDBRequest 55 class IDBRequest
56 : public RefCountedGarbageCollected<IDBRequest> 56 : public GarbageCollectedFinalized<IDBRequest>
57 , public ScriptWrappable 57 , public ScriptWrappable
58 , public EventTargetWithInlineData 58 , public EventTargetWithInlineData
59 , public ActiveDOMObject { 59 , public ActiveDOMObject {
60 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<IDBRequest>);
61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBRequest); 60 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBRequest);
62 public: 61 public:
63 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*); 62 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*);
64 virtual ~IDBRequest(); 63 virtual ~IDBRequest();
65 virtual void trace(Visitor*) OVERRIDE; 64 virtual void trace(Visitor*) OVERRIDE;
66 65
67 ScriptValue result(ExceptionState&); 66 ScriptValue result(ExceptionState&);
68 PassRefPtrWillBeRawPtr<DOMError> error(ExceptionState&) const; 67 PassRefPtrWillBeRawPtr<DOMError> error(ExceptionState&) const;
69 ScriptValue source() const; 68 ScriptValue source() const;
70 IDBTransaction* transaction() const { return m_transaction.get(); } 69 IDBTransaction* transaction() const { return m_transaction.get(); }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo; 162 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo;
164 163
165 bool m_didFireUpgradeNeededEvent; 164 bool m_didFireUpgradeNeededEvent;
166 bool m_preventPropagation; 165 bool m_preventPropagation;
167 bool m_resultDirty; 166 bool m_resultDirty;
168 }; 167 };
169 168
170 } // namespace WebCore 169 } // namespace WebCore
171 170
172 #endif // IDBRequest_h 171 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698