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

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: Fix oilpan type merge 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
« no previous file with comments | « Source/modules/indexeddb/IDBCursor.cpp ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Will return nullptr if this database is stopped. 112 // Will return nullptr if this database is stopped.
113 blink::WebIDBDatabase* backend() const { return m_backend.get(); } 113 blink::WebIDBDatabase* backend() const { return m_backend.get(); }
114 114
115 static int64_t nextTransactionId(); 115 static int64_t nextTransactionId();
116 116
117 void ackReceivedBlobs(const Vector<blink::WebBlobInfo>*);
118
117 static const char indexDeletedErrorMessage[]; 119 static const char indexDeletedErrorMessage[];
118 static const char isKeyCursorErrorMessage[]; 120 static const char isKeyCursorErrorMessage[];
119 static const char noKeyOrKeyRangeErrorMessage[]; 121 static const char noKeyOrKeyRangeErrorMessage[];
120 static const char noSuchIndexErrorMessage[]; 122 static const char noSuchIndexErrorMessage[];
121 static const char noSuchObjectStoreErrorMessage[]; 123 static const char noSuchObjectStoreErrorMessage[];
122 static const char noValueErrorMessage[]; 124 static const char noValueErrorMessage[];
123 static const char notValidKeyErrorMessage[]; 125 static const char notValidKeyErrorMessage[];
124 static const char notVersionChangeTransactionErrorMessage[]; 126 static const char notVersionChangeTransactionErrorMessage[];
125 static const char objectStoreDeletedErrorMessage[]; 127 static const char objectStoreDeletedErrorMessage[];
126 static const char requestNotFinishedErrorMessage[]; 128 static const char requestNotFinishedErrorMessage[];
(...skipping 20 matching lines...) Expand all
147 // Keep track of the versionchange events waiting to be fired on this 149 // Keep track of the versionchange events waiting to be fired on this
148 // database so that we can cancel them if the database closes. 150 // database so that we can cancel them if the database closes.
149 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; 151 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents;
150 152
151 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; 153 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks;
152 }; 154 };
153 155
154 } // namespace WebCore 156 } // namespace WebCore
155 157
156 #endif // IDBDatabase_h 158 #endif // IDBDatabase_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBCursor.cpp ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698