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

Side by Side Diff: content/browser/in_process_webkit/dom_storage_namespace.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // All the storage areas we own. 61 // All the storage areas we own.
62 typedef base::hash_map<string16, DOMStorageArea*> OriginToStorageAreaMap; 62 typedef base::hash_map<string16, DOMStorageArea*> OriginToStorageAreaMap;
63 OriginToStorageAreaMap origin_to_storage_area_; 63 OriginToStorageAreaMap origin_to_storage_area_;
64 64
65 // The DOMStorageContext that owns us. 65 // The DOMStorageContext that owns us.
66 DOMStorageContextImpl* dom_storage_context_; 66 DOMStorageContextImpl* dom_storage_context_;
67 67
68 // The WebKit storage namespace we manage. 68 // The WebKit storage namespace we manage.
69 scoped_ptr<WebKit::WebStorageNamespace> storage_namespace_; 69 scoped_ptr<WebKit::WebStorageNamespace> storage_namespace_;
70 70
71 // Our id. Unique to our parent WebKitContext class. 71 // Our id. Unique to our parent DOMStorageContext class.
72 int64 id_; 72 int64 id_;
73 73
74 // The path used to create us, so we can recreate our WebStorageNamespace on 74 // The path used to create us, so we can recreate our WebStorageNamespace on
75 // demand. 75 // demand.
76 WebKit::WebString data_dir_path_; 76 WebKit::WebString data_dir_path_;
77 77
78 // SessionStorage vs. LocalStorage. 78 // SessionStorage vs. LocalStorage.
79 const DOMStorageType dom_storage_type_; 79 const DOMStorageType dom_storage_type_;
80 80
81 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageNamespace); 81 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageNamespace);
82 }; 82 };
83 83
84 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_ 84 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698