| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void OnWorkerRunLoopStopped() OVERRIDE; | 56 virtual void OnWorkerRunLoopStopped() OVERRIDE; |
| 57 | 57 |
| 58 static WebKit::WebIDBMetadata ConvertMetadata( | 58 static WebKit::WebIDBMetadata ConvertMetadata( |
| 59 const IndexedDBDatabaseMetadata& idb_metadata); | 59 const IndexedDBDatabaseMetadata& idb_metadata); |
| 60 | 60 |
| 61 void OnMessageReceived(const IPC::Message& msg); | 61 void OnMessageReceived(const IPC::Message& msg); |
| 62 static bool Send(IPC::Message* msg); | 62 static bool Send(IPC::Message* msg); |
| 63 | 63 |
| 64 void RequestIDBFactoryGetDatabaseNames( | 64 void RequestIDBFactoryGetDatabaseNames( |
| 65 WebKit::WebIDBCallbacks* callbacks, | 65 WebKit::WebIDBCallbacks* callbacks, |
| 66 const string16& origin, | 66 const string16& database_identifier); |
| 67 WebKit::WebFrame* web_frame); | |
| 68 | 67 |
| 69 void RequestIDBFactoryOpen( | 68 void RequestIDBFactoryOpen( |
| 70 const string16& name, | 69 const string16& name, |
| 71 int64 version, | |
| 72 WebKit::WebIDBCallbacks* callbacks, | |
| 73 WebKit::WebIDBDatabaseCallbacks* database_callbacks, | |
| 74 const string16& origin, | |
| 75 WebKit::WebFrame* web_frame); | |
| 76 | |
| 77 void RequestIDBFactoryOpen( | |
| 78 const string16& name, | |
| 79 int64 version, | 70 int64 version, |
| 80 int64 transaction_id, | 71 int64 transaction_id, |
| 81 WebKit::WebIDBCallbacks* callbacks, | 72 WebKit::WebIDBCallbacks* callbacks, |
| 82 WebKit::WebIDBDatabaseCallbacks* database_callbacks, | 73 WebKit::WebIDBDatabaseCallbacks* database_callbacks, |
| 83 const string16& origin, | 74 const string16& database_identifier); |
| 84 WebKit::WebFrame* web_frame); | |
| 85 | 75 |
| 86 void RequestIDBFactoryDeleteDatabase( | 76 void RequestIDBFactoryDeleteDatabase( |
| 87 const string16& name, | 77 const string16& name, |
| 88 WebKit::WebIDBCallbacks* callbacks, | 78 WebKit::WebIDBCallbacks* callbacks, |
| 89 const string16& origin, | 79 const string16& database_identifier); |
| 90 WebKit::WebFrame* web_frame); | |
| 91 | 80 |
| 92 void RequestIDBCursorAdvance( | 81 void RequestIDBCursorAdvance( |
| 93 unsigned long count, | 82 unsigned long count, |
| 94 WebKit::WebIDBCallbacks* callbacks_ptr, | 83 WebKit::WebIDBCallbacks* callbacks_ptr, |
| 95 int32 ipc_cursor_id); | 84 int32 ipc_cursor_id); |
| 96 | 85 |
| 97 virtual void RequestIDBCursorContinue( | 86 virtual void RequestIDBCursorContinue( |
| 98 const IndexedDBKey& key, | 87 const IndexedDBKey& key, |
| 99 WebKit::WebIDBCallbacks* callbacks_ptr, | 88 WebKit::WebIDBCallbacks* callbacks_ptr, |
| 100 int32 ipc_cursor_id); | 89 int32 ipc_cursor_id); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 252 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
| 264 | 253 |
| 265 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; | 254 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; |
| 266 | 255 |
| 267 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 256 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 268 }; | 257 }; |
| 269 | 258 |
| 270 } // namespace content | 259 } // namespace content |
| 271 | 260 |
| 272 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 261 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |