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

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

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug Created 8 years, 10 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
===================================================================
--- content/browser/in_process_webkit/dom_storage_message_filter.h (revision 123509)
+++ content/browser/in_process_webkit/dom_storage_message_filter.h (working copy)
@@ -10,7 +10,6 @@
#include "base/message_loop_helpers.h"
#include "base/process.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"
#include "content/public/browser/browser_message_filter.h"
@@ -24,7 +23,8 @@
class DOMStorageMessageFilter : public content::BrowserMessageFilter {
public:
// Only call the constructor from the UI thread.
- DOMStorageMessageFilter(int process_id, WebKitContext* webkit_context);
+ DOMStorageMessageFilter(int process_id,
+ DOMStorageContextImpl* dom_storage_context);
// content::BrowserMessageFilter implementation
virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
@@ -65,9 +65,7 @@
void OnStorageEvent(const DOMStorageMsg_Event_Params& params);
// A shortcut for accessing our context.
- DOMStorageContextImpl* Context() {
- return webkit_context_->dom_storage_context();
- }
+ DOMStorageContextImpl* Context() { return dom_storage_context_; }
// Use whenever there's a chance OnStorageEvent will be called.
class ScopedStorageEventContext {
@@ -82,8 +80,7 @@
static DOMStorageMessageFilter* storage_event_message_filter;
static const GURL* storage_event_url_;
- // Data shared between renderer processes with the same browser context.
- scoped_refptr<WebKitContext> webkit_context_;
+ scoped_refptr<DOMStorageContextImpl> dom_storage_context_;
// Used to dispatch messages to the correct view host.
int process_id_;

Powered by Google App Engine
This is Rietveld 408576698