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

Side by Side Diff: public/platform/WebBlobRegistry.h

Issue 747323007: Introduce Stream::flush [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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
« no previous file with comments | « Source/platform/blob/BlobRegistry.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // type. 53 // type.
54 virtual void registerStreamURL(const WebURL&, const WebString&) { BLINK_ASSE RT_NOT_REACHED(); } 54 virtual void registerStreamURL(const WebURL&, const WebString&) { BLINK_ASSE RT_NOT_REACHED(); }
55 55
56 // Registers a stream URL referring to the stream identified by the 56 // Registers a stream URL referring to the stream identified by the
57 // specified srcURL. 57 // specified srcURL.
58 virtual void registerStreamURL(const WebURL&, const WebURL& srcURL) { BLINK_ ASSERT_NOT_REACHED(); }; 58 virtual void registerStreamURL(const WebURL&, const WebURL& srcURL) { BLINK_ ASSERT_NOT_REACHED(); };
59 59
60 // Add data to the stream referred by the URL. 60 // Add data to the stream referred by the URL.
61 virtual void addDataToStream(const WebURL&, const char* data, size_t length) { BLINK_ASSERT_NOT_REACHED(); } 61 virtual void addDataToStream(const WebURL&, const char* data, size_t length) { BLINK_ASSERT_NOT_REACHED(); }
62 62
63 // Flush contents buffered in the stream to the corresponding reader.
64 virtual void flushStream(const WebURL&) { BLINK_ASSERT_NOT_REACHED(); }
65
63 // Tell the registry that construction of this stream has completed 66 // Tell the registry that construction of this stream has completed
64 // successfully and so it won't receive any more data. 67 // successfully and so it won't receive any more data.
65 virtual void finalizeStream(const WebURL&) { BLINK_ASSERT_NOT_REACHED(); } 68 virtual void finalizeStream(const WebURL&) { BLINK_ASSERT_NOT_REACHED(); }
66 69
67 // Tell the registry that construction of this stream has been aborted and 70 // Tell the registry that construction of this stream has been aborted and
68 // so it won't receive any more data. 71 // so it won't receive any more data.
69 virtual void abortStream(const WebURL&) { BLINK_ASSERT_NOT_REACHED(); } 72 virtual void abortStream(const WebURL&) { BLINK_ASSERT_NOT_REACHED(); }
70 73
71 // Unregisters a stream referred by the URL. 74 // Unregisters a stream referred by the URL.
72 virtual void unregisterStreamURL(const WebURL&) { BLINK_ASSERT_NOT_REACHED() ; } 75 virtual void unregisterStreamURL(const WebURL&) { BLINK_ASSERT_NOT_REACHED() ; }
73 }; 76 };
74 77
75 } // namespace blink 78 } // namespace blink
76 79
77 #endif // WebBlobRegistry_h 80 #endif // WebBlobRegistry_h
OLDNEW
« no previous file with comments | « Source/platform/blob/BlobRegistry.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698