diff options
author | tyoshino <tyoshino@chromium.org> | 2014-10-16 21:51:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-17 04:51:38 +0000 |
commit | 703e7a89e3f4db15967e3710ef7353b484dd0a5b (patch) | |
tree | de8d35d07539126cb9255a4ed1ff2bd9752f7621 /content/test/mock_webblob_registry_impl.h | |
parent | 24f3d91568c470b69a62e6dab5998a295f2eb46b (diff) | |
download | chromium_src-703e7a89e3f4db15967e3710ef7353b484dd0a5b.zip chromium_src-703e7a89e3f4db15967e3710ef7353b484dd0a5b.tar.gz chromium_src-703e7a89e3f4db15967e3710ef7353b484dd0a5b.tar.bz2 |
[WebBlobRegistry] Use char* than WebThreadSafeData
We don't need to wrap the data with WebThreadSafeData here. Just use a
pair of const char* and size_t.
This is Chromium side CL
Blink side CL: https://codereview.chromium.org/611923002/
R=yhirano,jam
BUG=417093
Review URL: https://codereview.chromium.org/610333002
Cr-Commit-Position: refs/heads/master@{#300064}
Diffstat (limited to 'content/test/mock_webblob_registry_impl.h')
-rw-r--r-- | content/test/mock_webblob_registry_impl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/test/mock_webblob_registry_impl.h b/content/test/mock_webblob_registry_impl.h index 41fb66d..9e3c35e0 100644 --- a/content/test/mock_webblob_registry_impl.h +++ b/content/test/mock_webblob_registry_impl.h @@ -8,6 +8,10 @@ #include "base/macros.h" #include "third_party/WebKit/public/platform/WebBlobRegistry.h" +namespace blink { +class WebThreadSafeData; +} // namespace blink + namespace content { class MockWebBlobRegistryImpl : public blink::WebBlobRegistry { @@ -28,8 +32,11 @@ class MockWebBlobRegistryImpl : public blink::WebBlobRegistry { const blink::WebString& content_type); virtual void registerStreamURL(const blink::WebURL& url, const blink::WebURL& src_url); + // TODO(tyoshino): Remove once removed in Blink side. virtual void addDataToStream(const blink::WebURL& url, blink::WebThreadSafeData& data); + virtual void addDataToStream(const blink::WebURL& url, + const char* data, size_t length); virtual void finalizeStream(const blink::WebURL& url); virtual void abortStream(const blink::WebURL& url); virtual void unregisterStreamURL(const blink::WebURL& url); |