Chromium Code Reviews| Index: content/browser/in_process_webkit/indexed_db_dispatcher_host.h |
| diff --git a/content/browser/in_process_webkit/indexed_db_dispatcher_host.h b/content/browser/in_process_webkit/indexed_db_dispatcher_host.h |
| index 23190fbe06401e1713c435a16ca2cac20e7d0ec6..85b97b803b3fa74c207050a51870aeef4d57a681 100644 |
| --- a/content/browser/in_process_webkit/indexed_db_dispatcher_host.h |
| +++ b/content/browser/in_process_webkit/indexed_db_dispatcher_host.h |
| @@ -45,6 +45,8 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter { |
| virtual bool OnMessageReceived(const IPC::Message& message, |
| bool* message_was_ok); |
| + void TransactionComplete(int32 transaction_id); |
|
michaeln
2011/07/27 01:31:35
Would it make sense to make this method private? I
dgrogan
2011/07/29 18:14:04
Right, IndexedDBTransactionCallbacks needs to call
|
| + |
| // A shortcut for accessing our context. |
| IndexedDBContext* Context() { |
| return webkit_context_->indexed_db_context(); |
| @@ -56,7 +58,7 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter { |
| int32 Add(WebKit::WebIDBDatabase* idb_database, const GURL& origin_url); |
| int32 Add(WebKit::WebIDBIndex* idb_index); |
| int32 Add(WebKit::WebIDBObjectStore* idb_object_store); |
| - int32 Add(WebKit::WebIDBTransaction* idb_transaction); |
| + int32 Add(WebKit::WebIDBTransaction* idb_transaction, const GURL& origin_url); |
| private: |
| virtual ~IndexedDBDispatcherHost(); |
| @@ -82,6 +84,10 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter { |
| template <typename ObjectType> |
| void DestroyObject(IDMap<ObjectType, IDMapOwnPointer>* map, int32 object_id); |
| + // Used in nested classes. |
| + typedef std::map<int32, GURL> WebIDBObjectIDToURLMap; |
| + typedef std::map<int32, int64> WebIDBTransactionIDToSizeMap; |
| + |
| class DatabaseDispatcherHost { |
| public: |
| explicit DatabaseDispatcherHost(IndexedDBDispatcherHost* parent); |
| @@ -116,8 +122,7 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter { |
| IndexedDBDispatcherHost* parent_; |
| IDMap<WebKit::WebIDBDatabase, IDMapOwnPointer> map_; |
| - typedef std::map<int32, GURL> WebIDBDatabaseIDToURLMap; |
| - WebIDBDatabaseIDToURLMap url_map_; |
| + WebIDBObjectIDToURLMap database_url_map_; |
| }; |
| class IndexDispatcherHost { |
| @@ -254,6 +259,8 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter { |
| IndexedDBDispatcherHost* parent_; |
| typedef IDMap<WebKit::WebIDBTransaction, IDMapOwnPointer> MapType; |
| MapType map_; |
| + WebIDBObjectIDToURLMap transaction_url_map_; |
| + WebIDBTransactionIDToSizeMap transaction_size_map_; |
| }; |
| // Data shared between renderer processes with the same profile. |