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

Unified Diff: chrome/browser/in_process_webkit/webkit_context.h

Issue 223013: Another stab at the Chromium side of storage events. The WebKit side can be ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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: chrome/browser/in_process_webkit/webkit_context.h
===================================================================
--- chrome/browser/in_process_webkit/webkit_context.h (revision 27652)
+++ chrome/browser/in_process_webkit/webkit_context.h (working copy)
@@ -10,6 +10,7 @@
#include "base/scoped_ptr.h"
class DOMStorageContext;
+class WebKitThread;
// There's one WebKitContext per profile. Various DispatcherHost classes
// have a pointer to the Context to store shared state.
@@ -19,10 +20,10 @@
const FilePath& data_path() const { return data_path_; }
bool is_incognito() const { return is_incognito_; }
+ DOMStorageContext* dom_storage_context() {
+ return dom_storage_context_.get();
+ }
- // Initialized lazily. Pointer is valid for the lifetime of this instance.
- DOMStorageContext* GetDOMStorageContext();
-
private:
friend class base::RefCountedThreadSafe<WebKitContext>;
~WebKitContext();
@@ -31,7 +32,6 @@
const FilePath data_path_;
const bool is_incognito_;
- // The state for DOM Storage.
scoped_ptr<DOMStorageContext> dom_storage_context_;
DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext);
« no previous file with comments | « chrome/browser/in_process_webkit/storage_namespace.cc ('k') | chrome/browser/in_process_webkit/webkit_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698