| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H | 5 #ifndef CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H |
| 6 #define CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H | 6 #define CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 9 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 const blink::WebString& uuid); | 23 const blink::WebString& uuid); |
| 24 virtual void revokePublicBlobURL(const blink::WebURL&); | 24 virtual void revokePublicBlobURL(const blink::WebURL&); |
| 25 | 25 |
| 26 // Additional support for Streams. | 26 // Additional support for Streams. |
| 27 virtual void registerStreamURL(const blink::WebURL& url, | 27 virtual void registerStreamURL(const blink::WebURL& url, |
| 28 const blink::WebString& content_type); | 28 const blink::WebString& content_type); |
| 29 virtual void registerStreamURL(const blink::WebURL& url, | 29 virtual void registerStreamURL(const blink::WebURL& url, |
| 30 const blink::WebURL& src_url); | 30 const blink::WebURL& src_url); |
| 31 virtual void addDataToStream(const blink::WebURL& url, | 31 virtual void addDataToStream(const blink::WebURL& url, |
| 32 const char* data, size_t length); | 32 const char* data, size_t length); |
| 33 virtual void flushStream(const blink::WebURL& url); |
| 33 virtual void finalizeStream(const blink::WebURL& url); | 34 virtual void finalizeStream(const blink::WebURL& url); |
| 34 virtual void abortStream(const blink::WebURL& url); | 35 virtual void abortStream(const blink::WebURL& url); |
| 35 virtual void unregisterStreamURL(const blink::WebURL& url); | 36 virtual void unregisterStreamURL(const blink::WebURL& url); |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl); | 39 DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 } // namespace content | 42 } // namespace content |
| 42 | 43 |
| 43 #endif // CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H | 44 #endif // CONTENT_TEST_MOCK_WEB_BLOB_REGISTRY_IMPL_H |
| OLD | NEW |