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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 2740003: Implement IDBDatabase::createObjectStore. Also refactor IndexedDBCallbacks. (Closed)
Patch Set: Make sure indexed_db_context.cc is in the gypi file. Created 10 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/indexed_db_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 851
852 // IndexedDatabase::open message responses. 852 // IndexedDatabase::open message responses.
853 IPC_MESSAGE_CONTROL2(ViewMsg_IndexedDatabaseOpenSuccess, 853 IPC_MESSAGE_CONTROL2(ViewMsg_IndexedDatabaseOpenSuccess,
854 int32 /* response_id */, 854 int32 /* response_id */,
855 int32 /* idb_database_id */) 855 int32 /* idb_database_id */)
856 IPC_MESSAGE_CONTROL3(ViewMsg_IndexedDatabaseOpenError, 856 IPC_MESSAGE_CONTROL3(ViewMsg_IndexedDatabaseOpenError,
857 int32 /* response_id */, 857 int32 /* response_id */,
858 int /* code */, 858 int /* code */,
859 string16 /* message */) 859 string16 /* message */)
860 860
861 // IDBDatabase::createObjectStore message responses.
862 IPC_MESSAGE_CONTROL2(ViewMsg_IDBDatabaseCreateObjectStoreSuccess,
863 int32 /* response_id */,
864 int32 /* object_store_id */)
865 IPC_MESSAGE_CONTROL3(ViewMsg_IDBDatabaseCreateObjectStoreError,
866 int32 /* response_id */,
867 int /* code */,
868 string16 /* message */)
869
861 #if defined(IPC_MESSAGE_LOG_ENABLED) 870 #if defined(IPC_MESSAGE_LOG_ENABLED)
862 // Tell the renderer process to begin or end IPC message logging. 871 // Tell the renderer process to begin or end IPC message logging.
863 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled, 872 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled,
864 bool /* on or off */) 873 bool /* on or off */)
865 #endif 874 #endif
866 875
867 // Socket Stream messages: 876 // Socket Stream messages:
868 // These are messages from the browser to the SocketStreamHandle on 877 // These are messages from the browser to the SocketStreamHandle on
869 // a renderer. 878 // a renderer.
870 879
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
2193 // WebIDBDatabase::version() message. 2202 // WebIDBDatabase::version() message.
2194 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseVersion, 2203 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseVersion,
2195 int32, /* idb_database_id */ 2204 int32, /* idb_database_id */
2196 string16 /* vesion */) 2205 string16 /* vesion */)
2197 2206
2198 // WebIDBDatabase::objectStores() message. 2207 // WebIDBDatabase::objectStores() message.
2199 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseObjectStores, 2208 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseObjectStores,
2200 int32, /* idb_database_id */ 2209 int32, /* idb_database_id */
2201 std::vector<string16> /* objectStores */) 2210 std::vector<string16> /* objectStores */)
2202 2211
2212 // WebIDBDatabase::createObjectStore() message.
2213 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBDatabaseCreateObjectStore,
2214 ViewHostMsg_IDBDatabaseCreateObjectStore_Params)
2215
2203 // WebIDBDatabase::~WebIDBDatabase() message. 2216 // WebIDBDatabase::~WebIDBDatabase() message.
2204 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBDatabaseDestroyed, 2217 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBDatabaseDestroyed,
2205 int32 /* idb_database_id */) 2218 int32 /* idb_database_id */)
2206 2219
2207 // WebIDBIndex::name() message. 2220 // WebIDBIndex::name() message.
2208 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexName, 2221 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexName,
2209 int32, /* idb_index_id */ 2222 int32, /* idb_index_id */
2210 string16 /* name */) 2223 string16 /* name */)
2211 2224
2212 // WebIDBIndex::keyPath() message. 2225 // WebIDBIndex::keyPath() message.
2213 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexKeyPath, 2226 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexKeyPath,
2214 int32, /* idb_index_id */ 2227 int32, /* idb_index_id */
2215 string16 /* key_path */) 2228 string16 /* key_path */)
2216 2229
2217 // WebIDBIndex::unique() message. 2230 // WebIDBIndex::unique() message.
2218 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexUnique, 2231 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexUnique,
2219 int32, /* idb_unique_id */ 2232 int32, /* idb_unique_id */
2220 bool /* unique */) 2233 bool /* unique */)
2221 2234
2222 // WebIDBIndex::~WebIDBIndex() message. 2235 // WebIDBIndex::~WebIDBIndex() message.
2223 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBIndexDestroyed, 2236 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBIndexDestroyed,
2224 int32 /* idb_index_id */) 2237 int32 /* idb_index_id */)
2225 2238
2239 // WebIDBObjectStore::name() message.
2240 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreName,
2241 int32, /* idb_object_store_id */
2242 string16 /* name */)
2243
2244 // WebIDBObjectStore::keyPath() message.
2245 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreKeyPath,
2246 int32, /* idb_object_store_id */
2247 string16 /* keyPath */)
2248
2249 // WebIDBObjectStore::~WebIDBObjectStore() message.
2250 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBObjectStoreDestroyed,
2251 int32 /* idb_object_store_id */)
2252
2226 // Get file size in bytes. Set result to -1 if failed to get the file size. 2253 // Get file size in bytes. Set result to -1 if failed to get the file size.
2227 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize, 2254 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize,
2228 FilePath /* path */, 2255 FilePath /* path */,
2229 int64 /* result */) 2256 int64 /* result */)
2230 2257
2231 // Get file modification time in seconds. Set result to 0 if failed to get the 2258 // Get file modification time in seconds. Set result to 0 if failed to get the
2232 // file modification time. 2259 // file modification time.
2233 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileModificationTime, 2260 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileModificationTime,
2234 FilePath /* path */, 2261 FilePath /* path */,
2235 base::Time /* result */) 2262 base::Time /* result */)
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
2427 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume, 2454 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume,
2428 int /* render_view_id */, 2455 int /* render_view_id */,
2429 int /* bridge_id */) 2456 int /* bridge_id */)
2430 2457
2431 // Send the tree of accessibility data to the browser, where it's cached 2458 // Send the tree of accessibility data to the browser, where it's cached
2432 // in order to respond to OS accessibility queries immediately. 2459 // in order to respond to OS accessibility queries immediately.
2433 IPC_MESSAGE_ROUTED1(ViewHostMsg_AccessibilityTree, 2460 IPC_MESSAGE_ROUTED1(ViewHostMsg_AccessibilityTree,
2434 webkit_glue::WebAccessibility) 2461 webkit_glue::WebAccessibility)
2435 2462
2436 IPC_END_MESSAGES(ViewHost) 2463 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698