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

Unified Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.h

Issue 7470008: Improve IndexedDB's quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove NOTREACHED Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
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);
+
// 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.

Powered by Google App Engine
This is Rietveld 408576698