| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHILD_WEBBLOBREGISTRY_IMPL_H_ | 5 #ifndef CONTENT_CHILD_WEBBLOBREGISTRY_IMPL_H_ |
| 6 #define CONTENT_CHILD_WEBBLOBREGISTRY_IMPL_H_ | 6 #define CONTENT_CHILD_WEBBLOBREGISTRY_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 const blink::WebString& uuid); | 30 const blink::WebString& uuid); |
| 31 virtual void revokePublicBlobURL(const blink::WebURL&); | 31 virtual void revokePublicBlobURL(const blink::WebURL&); |
| 32 | 32 |
| 33 // Additional support for Streams. | 33 // Additional support for Streams. |
| 34 virtual void registerStreamURL(const blink::WebURL& url, | 34 virtual void registerStreamURL(const blink::WebURL& url, |
| 35 const blink::WebString& content_type); | 35 const blink::WebString& content_type); |
| 36 virtual void registerStreamURL(const blink::WebURL& url, | 36 virtual void registerStreamURL(const blink::WebURL& url, |
| 37 const blink::WebURL& src_url); | 37 const blink::WebURL& src_url); |
| 38 virtual void addDataToStream(const blink::WebURL& url, | 38 virtual void addDataToStream(const blink::WebURL& url, |
| 39 const char* data, size_t length); | 39 const char* data, size_t length); |
| 40 virtual void flushStream(const blink::WebURL& url); |
| 40 virtual void finalizeStream(const blink::WebURL& url); | 41 virtual void finalizeStream(const blink::WebURL& url); |
| 41 virtual void abortStream(const blink::WebURL& url); | 42 virtual void abortStream(const blink::WebURL& url); |
| 42 virtual void unregisterStreamURL(const blink::WebURL& url); | 43 virtual void unregisterStreamURL(const blink::WebURL& url); |
| 43 | 44 |
| 44 private: | 45 private: |
| 45 void SendDataForBlob(const std::string& uuid_str, | 46 void SendDataForBlob(const std::string& uuid_str, |
| 46 const blink::WebThreadSafeData& data); | 47 const blink::WebThreadSafeData& data); |
| 47 | 48 |
| 48 scoped_refptr<ThreadSafeSender> sender_; | 49 scoped_refptr<ThreadSafeSender> sender_; |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace content | 52 } // namespace content |
| 52 | 53 |
| 53 #endif // CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ | 54 #endif // CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
| OLD | NEW |