|
This CL is doing a bunch of Misc work to make LocalStorage data persist.
First of all, this allows WebKit clients to specify whether or not the VFS should be used. In the browser process, we never want it to be.
Next, this allows WebKit clients to specify the behavior of WebKit's FileSystem code. By default, they should all be NOT_REACHED(). The browser process implements the two of these I need for LocalStorage, but it'll be really easy for the rest to be implemented as needed.
Next, this adds a function that storage routines can call to ensure that lazily initialized stuff that must be initialized on the main WebKit thread is initialized. Right now, this is just used to initialize the UTF8 conversion tables, but I'm sure there'll be more overt time.
Lastly, this uses the profile directory stored by webkit_context_ to derive the path LocalStorage should use.
This CL also cleans up a few minor style issues as it goes.
TEST=none
BUG= 4360
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22452
Total comments: 8
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+215 lines, -83 lines) |
Patch |
|
M |
chrome/browser/in_process_webkit/browser_webkitclient_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/in_process_webkit/browser_webkitclient_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/in_process_webkit/dom_storage_dispatcher_host.h
|
View
|
3
4
5
6
7
8
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/render_sandbox_host_linux.cc
|
View
|
11
12
|
3 chunks |
+20 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/renderer/renderer_webkitclient_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/renderer/renderer_webkitclient_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/worker/worker_webkitclient_impl.h
|
View
|
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/worker/worker_webkitclient_impl.cc
|
View
|
8
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
webkit/api/public/WebKitClient.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
5 chunks |
+43 lines, -20 lines |
0 comments
|
Download
|
|
M |
webkit/api/src/ChromiumBridge.cpp
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+32 lines, -40 lines |
0 comments
|
Download
|
|
M |
webkit/api/src/WebKit.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
webkit/glue/webkitclient_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
webkit/glue/webkitclient_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+55 lines, -4 lines |
0 comments
|
Download
|
|
M |
webkit/tools/test_shell/test_shell_webkit_init.h
|
View
|
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
webkit/tools/test_shell/test_worker/test_worker_main.cc
|
View
|
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|