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

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

Issue 218953002: Oilpan: IDBCursor should be detached from IDBRequest when the IDBRequest stops (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual void onSuccess(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, Pa ssRefPtr<SharedBuffer>); 106 virtual void onSuccess(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, Pa ssRefPtr<SharedBuffer>);
107 107
108 // Only IDBOpenDBRequest instances should receive these: 108 // Only IDBOpenDBRequest instances should receive these:
109 virtual void onBlocked(int64_t oldVersion) { ASSERT_NOT_REACHED(); } 109 virtual void onBlocked(int64_t oldVersion) { ASSERT_NOT_REACHED(); }
110 virtual void onUpgradeNeeded(int64_t oldVersion, PassOwnPtr<blink::WebIDBDat abase>, const IDBDatabaseMetadata&, blink::WebIDBDataLoss, String dataLossMessag e) { ASSERT_NOT_REACHED(); } 110 virtual void onUpgradeNeeded(int64_t oldVersion, PassOwnPtr<blink::WebIDBDat abase>, const IDBDatabaseMetadata&, blink::WebIDBDataLoss, String dataLossMessag e) { ASSERT_NOT_REACHED(); }
111 virtual void onSuccess(PassOwnPtr<blink::WebIDBDatabase>, const IDBDatabaseM etadata&) { ASSERT_NOT_REACHED(); } 111 virtual void onSuccess(PassOwnPtr<blink::WebIDBDatabase>, const IDBDatabaseM etadata&) { ASSERT_NOT_REACHED(); }
112 112
113 // ActiveDOMObject 113 // ActiveDOMObject
114 virtual bool hasPendingActivity() const OVERRIDE FINAL; 114 virtual bool hasPendingActivity() const OVERRIDE FINAL;
115 virtual void stop() OVERRIDE FINAL; 115 virtual void stop() OVERRIDE FINAL;
116 virtual void contextWillBeDestroyed() OVERRIDE FINAL;
116 117
117 // EventTarget 118 // EventTarget
118 virtual const AtomicString& interfaceName() const OVERRIDE; 119 virtual const AtomicString& interfaceName() const OVERRIDE;
119 virtual ExecutionContext* executionContext() const OVERRIDE FINAL; 120 virtual ExecutionContext* executionContext() const OVERRIDE FINAL;
120 virtual void uncaughtExceptionInEventHandler() OVERRIDE FINAL; 121 virtual void uncaughtExceptionInEventHandler() OVERRIDE FINAL;
121 122
122 using EventTarget::dispatchEvent; 123 using EventTarget::dispatchEvent;
123 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 124 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE;
124 125
125 // Called by a version change transaction that has finished to set this 126 // Called by a version change transaction that has finished to set this
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 bool m_didFireUpgradeNeededEvent; 176 bool m_didFireUpgradeNeededEvent;
176 bool m_preventPropagation; 177 bool m_preventPropagation;
177 bool m_resultDirty; 178 bool m_resultDirty;
178 179
179 DOMRequestState m_requestState; 180 DOMRequestState m_requestState;
180 }; 181 };
181 182
182 } // namespace WebCore 183 } // namespace WebCore
183 184
184 #endif // IDBRequest_h 185 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698