Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / test / mock_webblob_registry_impl.cc
blobd97ba325e097305ade2839bffadaa7e7b3826fd3
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/test/mock_webblob_registry_impl.h"
7 #include "third_party/WebKit/public/platform/WebBlobData.h"
8 #include "third_party/WebKit/public/platform/WebString.h"
9 #include "third_party/WebKit/public/platform/WebThreadSafeData.h"
10 #include "third_party/WebKit/public/platform/WebURL.h"
12 using blink::WebBlobData;
13 using blink::WebString;
14 using blink::WebThreadSafeData;
15 using blink::WebURL;
17 namespace content {
19 MockWebBlobRegistryImpl::MockWebBlobRegistryImpl() {
22 MockWebBlobRegistryImpl::~MockWebBlobRegistryImpl() {
25 void MockWebBlobRegistryImpl::registerBlobData(const WebString& uuid,
26 const WebBlobData& data) {
29 void MockWebBlobRegistryImpl::addBlobDataRef(const WebString& uuid) {
32 void MockWebBlobRegistryImpl::removeBlobDataRef(const WebString& uuid) {
35 void MockWebBlobRegistryImpl::registerPublicBlobURL(const WebURL& url,
36 const WebString& uuid) {
39 void MockWebBlobRegistryImpl::revokePublicBlobURL(const WebURL& url) {
42 void MockWebBlobRegistryImpl::registerStreamURL(const WebURL& url,
43 const WebString& content_type) {
46 void MockWebBlobRegistryImpl::registerStreamURL(const WebURL& url,
47 const blink::WebURL& src_url) {
50 void MockWebBlobRegistryImpl::addDataToStream(const WebURL& url,
51 WebThreadSafeData& data) {
54 void MockWebBlobRegistryImpl::finalizeStream(const WebURL& url) {
57 void MockWebBlobRegistryImpl::abortStream(const WebURL& url) {
60 void MockWebBlobRegistryImpl::unregisterStreamURL(const WebURL& url) {
63 } // namespace content