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

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

Issue 7480041: Adding session-only localStorage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Oops. Fixing unit_tests which didn't build after the previous change. 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_message_filter.h
diff --git a/content/browser/in_process_webkit/dom_storage_message_filter.h b/content/browser/in_process_webkit/dom_storage_message_filter.h
index 9ac90346930789272e8b90e6c1e42bc84d1bdbf0..d763dbb7b975ad7326383eaf86024cea8e1f96b3 100644
--- a/content/browser/in_process_webkit/dom_storage_message_filter.h
+++ b/content/browser/in_process_webkit/dom_storage_message_filter.h
@@ -10,6 +10,7 @@
#include "base/process.h"
#include "base/tracked.h"
#include "content/browser/browser_message_filter.h"
+#include "content/browser/content_browser_client.h"
#include "content/browser/in_process_webkit/dom_storage_area.h"
#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/common/dom_storage_common.h"
@@ -18,6 +19,10 @@ class DOMStorageContext;
class GURL;
struct DOMStorageMsg_Event_Params;
+namespace dom_storage_test_helpers {
+class SessionOnlyTestHelper;
+}
+
// This class handles the logistics of DOM Storage within the browser process.
// It mostly ferries information between IPCs and the WebKit implementations,
// but it also handles some special cases like when renderer processes die.
@@ -42,11 +47,12 @@ class DOMStorageMessageFilter : public BrowserMessageFilter {
private:
friend class BrowserThread;
friend class DeleteTask<DOMStorageMessageFilter>;
+ friend class dom_storage_test_helpers::SessionOnlyTestHelper;
virtual ~DOMStorageMessageFilter();
// Message Handlers.
void OnStorageAreaId(int64 namespace_id, const string16& origin,
- int64* storage_area_id);
+ IPC::Message* reply_msg);
void OnLength(int64 storage_area_id, unsigned* length);
void OnKey(int64 storage_area_id, unsigned index, NullableString16* key);
void OnGetItem(int64 storage_area_id, const string16& key,
@@ -67,6 +73,11 @@ class DOMStorageMessageFilter : public BrowserMessageFilter {
return webkit_context_->dom_storage_context();
}
+ void OnStorageAreaIdOnWebKitThread(int64 namespace_id,
+ const string16& origin,
+ bool allow_permanent_storage,
+ IPC::Message* reply_msg);
+
// Use whenever there's a chance OnStorageEvent will be called.
class ScopedStorageEventContext {
public:

Powered by Google App Engine
This is Rietveld 408576698