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

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

Issue 864533002: Fix template angle bracket syntax in modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 DEFINE_ATTRIBUTE_EVENT_LISTENER(success); 103 DEFINE_ATTRIBUTE_EVENT_LISTENER(success);
104 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 104 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
105 105
106 void setCursorDetails(IndexedDB::CursorType, WebIDBCursorDirection); 106 void setCursorDetails(IndexedDB::CursorType, WebIDBCursorDirection);
107 void setPendingCursor(IDBCursor*); 107 void setPendingCursor(IDBCursor*);
108 void abort(); 108 void abort();
109 109
110 virtual void onError(DOMError*); 110 virtual void onError(DOMError*);
111 virtual void onSuccess(const Vector<String>&); 111 virtual void onSuccess(const Vector<String>&);
112 virtual void onSuccess(PassOwnPtr<WebIDBCursor>, IDBKey*, IDBKey* primaryKey , PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<WebBlobInfo> >); 112 virtual void onSuccess(PassOwnPtr<WebIDBCursor>, IDBKey*, IDBKey* primaryKey , PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<WebBlobInfo>>);
113 virtual void onSuccess(IDBKey*); 113 virtual void onSuccess(IDBKey*);
114 virtual void onSuccess(PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<WebBlobIn fo> >); 114 virtual void onSuccess(PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<WebBlobIn fo>>);
115 virtual void onSuccess(PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<WebBlobIn fo> >, IDBKey*, const IDBKeyPath&); 115 virtual void onSuccess(PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<WebBlobIn fo>>, IDBKey*, const IDBKeyPath&);
116 virtual void onSuccess(int64_t); 116 virtual void onSuccess(int64_t);
117 virtual void onSuccess(); 117 virtual void onSuccess();
118 virtual void onSuccess(IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer> , PassOwnPtr<Vector<WebBlobInfo> >); 118 virtual void onSuccess(IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer> , PassOwnPtr<Vector<WebBlobInfo>>);
119 119
120 // Only IDBOpenDBRequest instances should receive these: 120 // Only IDBOpenDBRequest instances should receive these:
121 virtual void onBlocked(int64_t oldVersion) { ASSERT_NOT_REACHED(); } 121 virtual void onBlocked(int64_t oldVersion) { ASSERT_NOT_REACHED(); }
122 virtual void onUpgradeNeeded(int64_t oldVersion, PassOwnPtr<WebIDBDatabase>, const IDBDatabaseMetadata&, WebIDBDataLoss, String dataLossMessage) { ASSERT_NO T_REACHED(); } 122 virtual void onUpgradeNeeded(int64_t oldVersion, PassOwnPtr<WebIDBDatabase>, const IDBDatabaseMetadata&, WebIDBDataLoss, String dataLossMessage) { ASSERT_NO T_REACHED(); }
123 virtual void onSuccess(PassOwnPtr<WebIDBDatabase>, const IDBDatabaseMetadata &) { ASSERT_NOT_REACHED(); } 123 virtual void onSuccess(PassOwnPtr<WebIDBDatabase>, const IDBDatabaseMetadata &) { ASSERT_NOT_REACHED(); }
124 124
125 // ActiveDOMObject 125 // ActiveDOMObject
126 virtual bool hasPendingActivity() const override final; 126 virtual bool hasPendingActivity() const override final;
127 virtual void stop() override final; 127 virtual void stop() override final;
128 128
(...skipping 19 matching lines...) Expand all
148 virtual bool shouldEnqueueEvent() const; 148 virtual bool shouldEnqueueEvent() const;
149 void onSuccessInternal(IDBAny*); 149 void onSuccessInternal(IDBAny*);
150 void setResult(IDBAny*); 150 void setResult(IDBAny*);
151 151
152 bool m_contextStopped; 152 bool m_contextStopped;
153 Member<IDBTransaction> m_transaction; 153 Member<IDBTransaction> m_transaction;
154 ReadyState m_readyState; 154 ReadyState m_readyState;
155 bool m_requestAborted; // May be aborted by transaction then receive async o nsuccess; ignore vs. assert. 155 bool m_requestAborted; // May be aborted by transaction then receive async o nsuccess; ignore vs. assert.
156 156
157 private: 157 private:
158 void setResultCursor(IDBCursor*, IDBKey*, IDBKey* primaryKey, PassRefPtr<Sha redBuffer> value, PassOwnPtr<Vector<WebBlobInfo> >); 158 void setResultCursor(IDBCursor*, IDBKey*, IDBKey* primaryKey, PassRefPtr<Sha redBuffer> value, PassOwnPtr<Vector<WebBlobInfo>>);
159 void setBlobInfo(PassOwnPtr<Vector<WebBlobInfo>>); 159 void setBlobInfo(PassOwnPtr<Vector<WebBlobInfo>>);
160 160
161 RefPtr<ScriptState> m_scriptState; 161 RefPtr<ScriptState> m_scriptState;
162 Member<IDBAny> m_source; 162 Member<IDBAny> m_source;
163 Member<IDBAny> m_result; 163 Member<IDBAny> m_result;
164 Member<DOMError> m_error; 164 Member<DOMError> m_error;
165 165
166 bool m_hasPendingActivity; 166 bool m_hasPendingActivity;
167 WillBeHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; 167 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents;
168 168
169 // Only used if the result type will be a cursor. 169 // Only used if the result type will be a cursor.
170 IndexedDB::CursorType m_cursorType; 170 IndexedDB::CursorType m_cursorType;
171 WebIDBCursorDirection m_cursorDirection; 171 WebIDBCursorDirection m_cursorDirection;
172 // When a cursor is continued/advanced, m_result is cleared and m_pendingCur sor holds it. 172 // When a cursor is continued/advanced, m_result is cleared and m_pendingCur sor holds it.
173 Member<IDBCursor> m_pendingCursor; 173 Member<IDBCursor> m_pendingCursor;
174 // New state is not applied to the cursor object until the event is dispatch ed. 174 // New state is not applied to the cursor object until the event is dispatch ed.
175 Member<IDBKey> m_cursorKey; 175 Member<IDBKey> m_cursorKey;
176 Member<IDBKey> m_cursorPrimaryKey; 176 Member<IDBKey> m_cursorPrimaryKey;
177 RefPtr<SharedBuffer> m_cursorValue; 177 RefPtr<SharedBuffer> m_cursorValue;
178 OwnPtr<IDBBlobHolder> m_blobs; 178 OwnPtr<IDBBlobHolder> m_blobs;
179 179
180 bool m_didFireUpgradeNeededEvent; 180 bool m_didFireUpgradeNeededEvent;
181 bool m_preventPropagation; 181 bool m_preventPropagation;
182 bool m_resultDirty; 182 bool m_resultDirty;
183 }; 183 };
184 184
185 } // namespace blink 185 } // namespace blink
186 186
187 #endif // IDBRequest_h 187 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698