diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-24 04:59:17 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-24 04:59:17 +0000 |
commit | fd7f2379b27a709bc84e5af24a6097c9c355fc6e (patch) | |
tree | 953ce8b34cbbf5655f70731b4de1af007cedb54d /webkit/api/src/ChromiumThreading.cpp | |
parent | a106946bf1fbfeb6003510e3c26dd919611fa4fd (diff) | |
download | chromium_src-fd7f2379b27a709bc84e5af24a6097c9c355fc6e.zip chromium_src-fd7f2379b27a709bc84e5af24a6097c9c355fc6e.tar.gz chromium_src-fd7f2379b27a709bc84e5af24a6097c9c355fc6e.tar.bz2 |
Switch WebHTTPBody and WebDragData to implement copy-on-write behavior. This
allows me to return a copyable instance of these wrapper classes while
preventing a consumer from modifying the WebCore objects being wrapped. A
modification will just modify a copy. This is going to be especially helpful
when it comes to wrapping HistoryItem.
Note how this simplifies WebURLRequest a bit since it doesn't have to carry a
WebHTTPBody member.
The copy-on-write behavior is implemented in an ensureMutable method.
This CL depends on https://bugs.webkit.org/show_bug.cgi?id=26622
BUG=none
TEST=none
R=dglazkov
Review URL: http://codereview.chromium.org/141062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19103 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api/src/ChromiumThreading.cpp')
0 files changed, 0 insertions, 0 deletions