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

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

Issue 23490013: Add method to abort Stream construction to BlobRegistry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/fileapi/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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // type. 60 // type.
61 virtual void registerStreamURL(const WebURL&, const WebString&) { WEBKIT_ASS ERT_NOT_REACHED(); } 61 virtual void registerStreamURL(const WebURL&, const WebString&) { WEBKIT_ASS ERT_NOT_REACHED(); }
62 62
63 // Registers a stream URL referring to the stream identified by the 63 // Registers a stream URL referring to the stream identified by the
64 // specified srcURL. 64 // specified srcURL.
65 virtual void registerStreamURL(const WebURL&, const WebURL& srcURL) { WEBKIT _ASSERT_NOT_REACHED(); }; 65 virtual void registerStreamURL(const WebURL&, const WebURL& srcURL) { WEBKIT _ASSERT_NOT_REACHED(); };
66 66
67 // Add data to the stream referred by the URL. 67 // Add data to the stream referred by the URL.
68 virtual void addDataToStream(const WebURL&, WebThreadSafeData&) { WEBKIT_ASS ERT_NOT_REACHED(); } 68 virtual void addDataToStream(const WebURL&, WebThreadSafeData&) { WEBKIT_ASS ERT_NOT_REACHED(); }
69 69
70 // Tell the registry that this stream won't receive any more data. 70 // Tell the registry that construction of this stream has completed
71 // successfully and so it won't receive any more data.
71 virtual void finalizeStream(const WebURL&) { WEBKIT_ASSERT_NOT_REACHED(); } 72 virtual void finalizeStream(const WebURL&) { WEBKIT_ASSERT_NOT_REACHED(); }
72 73
74 // Tell the registry that construction of this stream has been aborted and
75 // so it won't receive any more data.
76 virtual void abortStream(const WebURL&) { WEBKIT_ASSERT_NOT_REACHED(); }
77
73 // Unregisters a stream referred by the URL. 78 // Unregisters a stream referred by the URL.
74 virtual void unregisterStreamURL(const WebURL&) { WEBKIT_ASSERT_NOT_REACHED( ); } 79 virtual void unregisterStreamURL(const WebURL&) { WEBKIT_ASSERT_NOT_REACHED( ); }
75 }; 80 };
76 81
77 } // namespace WebKit 82 } // namespace WebKit
78 83
79 #endif // WebBlobRegistry_h 84 #endif // WebBlobRegistry_h
OLDNEW
« no previous file with comments | « Source/core/fileapi/BlobRegistry.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698