Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Side by Side Diff: content/child/webblobregistry_impl.h

Issue 760823002: Introduce Stream::flush [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698