Removing uses of X11 native key events.
[chromium-blink-merge.git] / content / test / mock_webblob_registry_impl.h
blob41fb66d73f6c31dc7962f243fb8f19c7974fb67f
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 #ifndef CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
6 #define CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H
8 #include "base/macros.h"
9 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
11 namespace content {
13 class MockWebBlobRegistryImpl : public blink::WebBlobRegistry {
14 public:
15 MockWebBlobRegistryImpl();
16 virtual ~MockWebBlobRegistryImpl();
18 virtual void registerBlobData(const blink::WebString& uuid,
19 const blink::WebBlobData& data);
20 virtual void addBlobDataRef(const blink::WebString& uuid);
21 virtual void removeBlobDataRef(const blink::WebString& uuid);
22 virtual void registerPublicBlobURL(const blink::WebURL&,
23 const blink::WebString& uuid);
24 virtual void revokePublicBlobURL(const blink::WebURL&);
26 // Additional support for Streams.
27 virtual void registerStreamURL(const blink::WebURL& url,
28 const blink::WebString& content_type);
29 virtual void registerStreamURL(const blink::WebURL& url,
30 const blink::WebURL& src_url);
31 virtual void addDataToStream(const blink::WebURL& url,
32 blink::WebThreadSafeData& data);
33 virtual void finalizeStream(const blink::WebURL& url);
34 virtual void abortStream(const blink::WebURL& url);
35 virtual void unregisterStreamURL(const blink::WebURL& url);
37 private:
38 DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl);
41 } // namespace content
43 #endif // CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H