Chromium Code Reviews| Index: content/browser/in_process_webkit/indexed_db_context.cc |
| diff --git a/content/browser/in_process_webkit/indexed_db_context.cc b/content/browser/in_process_webkit/indexed_db_context.cc |
| index f9722ec2be90118d04bcc8ea534144c72dd82c01..cdfc36a0f4e4311fb21f1a658f03e1ce27e63f4f 100644 |
| --- a/content/browser/in_process_webkit/indexed_db_context.cc |
| +++ b/content/browser/in_process_webkit/indexed_db_context.cc |
| @@ -6,9 +6,11 @@ |
| #include "base/file_util.h" |
| #include "base/logging.h" |
| +#include "base/message_loop_proxy.h" |
| #include "base/string_util.h" |
| #include "base/utf_string_conversions.h" |
| #include "content/browser/browser_thread.h" |
| +#include "content/browser/in_process_webkit/indexed_db_quota_client.h" |
| #include "content/browser/in_process_webkit/webkit_context.h" |
| #include "googleurl/src/gurl.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" |
| @@ -17,6 +19,7 @@ |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| #include "webkit/glue/webkit_glue.h" |
| +#include "webkit/quota/quota_manager.h" |
| #include "webkit/quota/special_storage_policy.h" |
| using WebKit::WebIDBDatabase; |
| @@ -54,10 +57,16 @@ const FilePath::CharType IndexedDBContext::kIndexedDBExtension[] = |
| IndexedDBContext::IndexedDBContext( |
| WebKitContext* webkit_context, |
| - quota::SpecialStoragePolicy* special_storage_policy) |
| + quota::SpecialStoragePolicy* special_storage_policy, |
| + quota::QuotaManagerProxy* quota_manager_proxy, |
| + base::MessageLoopProxy* webkit_thread_loop) |
| : clear_local_state_on_exit_(false), |
| special_storage_policy_(special_storage_policy) { |
| data_path_ = webkit_context->data_path().Append(kIndexedDBDirectory); |
| + if (quota_manager_proxy) { |
| + quota_manager_proxy->RegisterClient( |
|
michaeln
2011/05/26 18:12:04
if you have in mind to land just the framing w/o t
dgrogan
2011/05/26 18:28:24
Yeah, that is what I have in mind; I'll comment ou
|
| + new IndexedDBQuotaClient(webkit_thread_loop, this)); |
| + } |
| } |
| IndexedDBContext::~IndexedDBContext() { |