Index: content/browser/in_process_webkit/dom_storage_context.h |
diff --git a/content/browser/in_process_webkit/dom_storage_context.h b/content/browser/in_process_webkit/dom_storage_context.h |
index 2d3c6673b2eada23fe79a52407ef498d0166951a..1db0ffa9ca1218536a04a5c3eefbb318a2a64bd9 100644 |
--- a/content/browser/in_process_webkit/dom_storage_context.h |
+++ b/content/browser/in_process_webkit/dom_storage_context.h |
@@ -13,6 +13,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/string16.h" |
#include "base/time.h" |
+#include "content/browser/resource_context.h" |
class DOMStorageArea; |
class DOMStorageMessageFilter; |
@@ -33,7 +34,8 @@ class SpecialStoragePolicy; |
class DOMStorageContext { |
public: |
DOMStorageContext(WebKitContext* webkit_context, |
- quota::SpecialStoragePolicy* special_storage_policy); |
+ quota::SpecialStoragePolicy* special_storage_policy, |
+ const content::ResourceContext& resource_context); |
virtual ~DOMStorageContext(); |
// Invalid storage id. No storage session will ever report this value. |
@@ -107,6 +109,10 @@ class DOMStorageContext { |
void set_data_path(const FilePath& data_path) { data_path_ = data_path; } |
#endif |
+ const content::ResourceContext& GetResourceContext() const { |
michaeln
2011/08/04 20:21:51
would prefer unix hacker style for this simple get
marja
2011/08/05 13:15:53
Done. Or rather, "Gone".
|
+ return resource_context_; |
+ } |
+ |
private: |
// Get the local storage instance. The object is owned by this class. |
DOMStorageNamespace* CreateLocalStorage(); |
@@ -157,6 +163,7 @@ class DOMStorageContext { |
StorageNamespaceMap storage_namespace_map_; |
scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; |
+ const content::ResourceContext& resource_context_; |
DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContext); |
}; |