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

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

Issue 7053030: Initial IndexedDBQuotaClient implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make webkit thread outlive IndexedDBContext Created 9 years, 7 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/webkit_context.h
diff --git a/content/browser/in_process_webkit/webkit_context.h b/content/browser/in_process_webkit/webkit_context.h
index 3c324a6e81ac9ddf24d79b2433b0ae1ae4f01098..fa2d32dd6152e7317fa40442dd4088bae4c99f47 100644
--- a/content/browser/in_process_webkit/webkit_context.h
+++ b/content/browser/in_process_webkit/webkit_context.h
@@ -15,7 +15,12 @@
#include "content/browser/in_process_webkit/dom_storage_context.h"
#include "content/browser/in_process_webkit/indexed_db_context.h"
+namespace base {
+class MessageLoopProxy;
+}
+
namespace quota {
+class QuotaManagerProxy;
class SpecialStoragePolicy;
}
@@ -30,7 +35,9 @@ class WebKitContext : public base::RefCountedThreadSafe<WebKitContext> {
public:
WebKitContext(bool is_incognito, const FilePath& data_path,
quota::SpecialStoragePolicy* special_storage_policy,
- bool clear_local_state_on_exit);
+ bool clear_local_state_on_exit,
+ quota::QuotaManagerProxy* quota_manager_proxy,
+ base::MessageLoopProxy* webkit_thread_loop);
const FilePath& data_path() const { return data_path_; }
bool is_incognito() const { return is_incognito_; }
@@ -78,7 +85,7 @@ class WebKitContext : public base::RefCountedThreadSafe<WebKitContext> {
bool clear_local_state_on_exit_;
scoped_ptr<DOMStorageContext> dom_storage_context_;
- scoped_ptr<IndexedDBContext> indexed_db_context_;
+ scoped_refptr<IndexedDBContext> indexed_db_context_;
DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext);
};

Powered by Google App Engine
This is Rietveld 408576698