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

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

Issue 235933013: Add the backchannel for Blobs to be received into Blink from the database backend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rolled in feedback 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 int64_t findObjectStoreId(const String& name) const; 106 int64_t findObjectStoreId(const String& name) const;
107 bool containsObjectStore(const String& name) const 107 bool containsObjectStore(const String& name) const
108 { 108 {
109 return findObjectStoreId(name) != IDBObjectStoreMetadata::InvalidId; 109 return findObjectStoreId(name) != IDBObjectStoreMetadata::InvalidId;
110 } 110 }
111 111
112 blink::WebIDBDatabase* backend() const { return m_backend.get(); } 112 blink::WebIDBDatabase* backend() const { return m_backend.get(); }
113 113
114 static int64_t nextTransactionId(); 114 static int64_t nextTransactionId();
115 115
116 void ackReceivedBlobs(const Vector<blink::WebBlobInfo>*);
117
116 static const char indexDeletedErrorMessage[]; 118 static const char indexDeletedErrorMessage[];
117 static const char isKeyCursorErrorMessage[]; 119 static const char isKeyCursorErrorMessage[];
118 static const char noKeyOrKeyRangeErrorMessage[]; 120 static const char noKeyOrKeyRangeErrorMessage[];
119 static const char noSuchIndexErrorMessage[]; 121 static const char noSuchIndexErrorMessage[];
120 static const char noSuchObjectStoreErrorMessage[]; 122 static const char noSuchObjectStoreErrorMessage[];
121 static const char noValueErrorMessage[]; 123 static const char noValueErrorMessage[];
122 static const char notValidKeyErrorMessage[]; 124 static const char notValidKeyErrorMessage[];
123 static const char notVersionChangeTransactionErrorMessage[]; 125 static const char notVersionChangeTransactionErrorMessage[];
124 static const char objectStoreDeletedErrorMessage[]; 126 static const char objectStoreDeletedErrorMessage[];
125 static const char requestNotFinishedErrorMessage[]; 127 static const char requestNotFinishedErrorMessage[];
(...skipping 19 matching lines...) Expand all
145 // Keep track of the versionchange events waiting to be fired on this 147 // Keep track of the versionchange events waiting to be fired on this
146 // database so that we can cancel them if the database closes. 148 // database so that we can cancel them if the database closes.
147 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; 149 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents;
148 150
149 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; 151 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks;
150 }; 152 };
151 153
152 } // namespace WebCore 154 } // namespace WebCore
153 155
154 #endif // IDBDatabase_h 156 #endif // IDBDatabase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698