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

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

Issue 7480041: Adding session-only localStorage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Adding tests. Created 9 years, 5 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/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 {
+ 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);
};

Powered by Google App Engine
This is Rietveld 408576698