summaryrefslogtreecommitdiffstats
path: root/content/child/webblobregistry_impl.h
diff options
context:
space:
mode:
authortyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-06 07:45:23 +0000
committertyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-06 07:45:23 +0000
commit90b3777adb78a13ebfcd17174ab1dc36fca63686 (patch)
tree9bdb1f2a86441753a3492c9541f2fd6b5e92185a /content/child/webblobregistry_impl.h
parent3f89167567defcc967b4e125b27170bc43f8c79c (diff)
downloadchromium_src-90b3777adb78a13ebfcd17174ab1dc36fca63686.zip
chromium_src-90b3777adb78a13ebfcd17174ab1dc36fca63686.tar.gz
chromium_src-90b3777adb78a13ebfcd17174ab1dc36fca63686.tar.bz2
Add Stream support to WebBlobRegistry and FileAPIMessageFilter.
Some of existing IPCs and methods for Blob are renamed for readability. Note - raw data sending code in webblobregistry_impl.cc are duplicated intentionally not to bother michaeln's refactoring Bonus: Stopped over-optimization of sharing webkit_blob::BlobData::Item instances in webblobregistry_impl.cc BUG=169957 Review URL: https://chromiumcodereview.appspot.com/15817013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215842 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/child/webblobregistry_impl.h')
-rw-r--r--content/child/webblobregistry_impl.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/content/child/webblobregistry_impl.h b/content/child/webblobregistry_impl.h
index 7e67e42..ddc7a02 100644
--- a/content/child/webblobregistry_impl.h
+++ b/content/child/webblobregistry_impl.h
@@ -11,6 +11,7 @@
namespace WebKit {
class WebBlobData;
+class WebString;
class WebThreadSafeData;
class WebURL;
}
@@ -29,10 +30,18 @@ class WebBlobRegistryImpl : public WebKit::WebBlobRegistry {
const WebKit::WebURL& src_url);
virtual void unregisterBlobURL(const WebKit::WebURL& url);
+ virtual void registerStreamURL(const WebKit::WebURL& url,
+ const WebKit::WebString& content_type);
+ virtual void registerStreamURL(const WebKit::WebURL& url,
+ const WebKit::WebURL& src_url);
+ virtual void addDataToStream(const WebKit::WebURL& url,
+ WebKit::WebThreadSafeData& data);
+ virtual void finalizeStream(const WebKit::WebURL& url);
+ virtual void unregisterStreamURL(const WebKit::WebURL& url);
+
private:
- void SendData(const WebKit::WebURL& url,
- const WebKit::WebThreadSafeData& data,
- webkit_blob::BlobData::Item* item);
+ void SendDataForBlob(const WebKit::WebURL& url,
+ const WebKit::WebThreadSafeData& data);
scoped_refptr<ThreadSafeSender> sender_;
};