summaryrefslogtreecommitdiffstats
path: root/webkit/glue/resource_fetcher.h
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 15:28:22 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 15:28:22 +0000
commitb67f19cbe25b385272b34666226657a15298ac66 (patch)
tree0d3eeb6610db1c6f441f11deee9fdc9a2770d7d8 /webkit/glue/resource_fetcher.h
parentef944e059c2a1bde47f19f8d87a86742f766d94c (diff)
downloadchromium_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.h')
-rw-r--r--webkit/glue/resource_fetcher.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/glue/resource_fetcher.h b/webkit/glue/resource_fetcher.h
index 75eb3ab..7910fc1 100644
--- a/webkit/glue/resource_fetcher.h
+++ b/webkit/glue/resource_fetcher.h
@@ -61,6 +61,8 @@ class ResourceFetcher : public WebKit::WebURLLoaderClient {
unsigned long long total_bytes_to_be_sent);
virtual void didReceiveResponse(
WebKit::WebURLLoader* loader, const WebKit::WebURLResponse& response);
+ virtual void didReceiveCachedMetadata(
+ WebKit::WebURLLoader* loader, const char* data, int data_length);
virtual void didReceiveData(
WebKit::WebURLLoader* loader, const char* data, int data_length);
virtual void didFinishLoading(WebKit::WebURLLoader* loader);
@@ -87,6 +89,9 @@ class ResourceFetcher : public WebKit::WebURLLoaderClient {
// Buffer to hold the content from the server.
std::string data_;
+
+ // Buffer to hold metadata from the cache.
+ std::string metadata_;
};
/////////////////////////////////////////////////////////////////////////////