diff options
author | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-17 15:28:22 +0000 |
---|---|---|
committer | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-17 15:28:22 +0000 |
commit | b67f19cbe25b385272b34666226657a15298ac66 (patch) | |
tree | 0d3eeb6610db1c6f441f11deee9fdc9a2770d7d8 /webkit/glue/resource_fetcher.cc | |
parent | ef944e059c2a1bde47f19f8d87a86742f766d94c (diff) | |
download | chromium_src-b67f19cbe25b385272b34666226657a15298ac66.zip chromium_src-b67f19cbe25b385272b34666226657a15298ac66.tar.gz chromium_src-b67f19cbe25b385272b34666226657a15298ac66.tar.bz2 |
Glue for sending/receiving cacheable metadata.
TEST=None
BUG=32407
Review URL: http://codereview.chromium.org/1742004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/resource_fetcher.cc')
-rw-r--r-- | webkit/glue/resource_fetcher.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/resource_fetcher.cc b/webkit/glue/resource_fetcher.cc index f29b63b..186092b 100644 --- a/webkit/glue/resource_fetcher.cc +++ b/webkit/glue/resource_fetcher.cc @@ -80,6 +80,14 @@ void ResourceFetcher::didReceiveData( data_.append(data, data_length); } +void ResourceFetcher::didReceiveCachedMetadata( + WebURLLoader* loader, const char* data, int data_length) { + DCHECK(!completed_); + DCHECK(data_length > 0); + + metadata_.assign(data, data_length); +} + void ResourceFetcher::didFinishLoading(WebURLLoader* loader) { DCHECK(!completed_); completed_ = true; |