summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkit_glue.cc
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-08 03:54:49 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-08 03:54:49 +0000
commitc7fd0cbdbd381035ecd95d164a59d874b41d9339 (patch)
tree9956e58e7eb8b9098301cca6f1330ed5a3a1a348 /webkit/glue/webkit_glue.cc
parentb4599a15c90a853930187cc751c951beb819c02d (diff)
downloadchromium_src-c7fd0cbdbd381035ecd95d164a59d874b41d9339.zip
chromium_src-c7fd0cbdbd381035ecd95d164a59d874b41d9339.tar.gz
chromium_src-c7fd0cbdbd381035ecd95d164a59d874b41d9339.tar.bz2
Refactor DOM storage to be more object oriented. All the DOMStorageDispatcher hosts (which are each owned by one ResourceMessageFilter) for the same profile share a WebKit context, and each one of those contexts owns a DOMStorageContext. The DOMStorageContext owns storage namespace objects which own storage area objects which wrap their WebKit counterparts.
Not only is this cleaner code wise and more efficient (we're not duplicating WebStorageNamespaces and Areas for each DOMStorageDispatcherHost) but this is necessary for events and locking. TEST=none BUG=none Review URL: http://codereview.chromium.org/192003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25609 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.cc')
-rw-r--r--webkit/glue/webkit_glue.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc
index 3dfdca2..4bfd0ef 100644
--- a/webkit/glue/webkit_glue.cc
+++ b/webkit/glue/webkit_glue.cc
@@ -273,6 +273,14 @@ WebString FilePathStringToWebString(const FilePath::StringType& str) {
#endif
}
+FilePath WebStringToFilePath(const WebKit::WebString& str) {
+ return FilePath(WebStringToFilePathString(str));
+}
+
+WebKit::WebString FilePathToWebString(const FilePath& file_path) {
+ return FilePathStringToWebString(file_path.value());
+}
+
std::string GetWebKitVersion() {
return StringPrintf("%d.%d", WEBKIT_VERSION_MAJOR, WEBKIT_VERSION_MINOR);
}