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

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

Issue 18635004: [Not ready for review] Add Streams API support to FileReader Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/FileReader.idl ('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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 public: 44 public:
45 WEBKIT_EXPORT static WebBlobRegistry* create(); 45 WEBKIT_EXPORT static WebBlobRegistry* create();
46 46
47 virtual ~WebBlobRegistry() { } 47 virtual ~WebBlobRegistry() { }
48 48
49 // Registers a blob URL referring to the specified blob data. 49 // Registers a blob URL referring to the specified blob data.
50 virtual void registerBlobURL(const WebURL&, WebBlobData&) = 0; 50 virtual void registerBlobURL(const WebURL&, WebBlobData&) = 0;
51 51
52 // Registers a stream URL referring to a stream with the specified media 52 // Registers a stream URL referring to a stream with the specified media
53 // type. 53 // type.
54 virtual void registerStreamURL(const WebURL&, const WebString&) { WEBKIT_ASS ERT_NOT_REACHED(); } 54 virtual void registerStreamURL(const WebURL&, const WebString&) = 0;
55 55
56 // Registers a blob or stream URL referring to the blob data or stream 56 // Registers a blob or stream URL referring to the blob data or stream
57 // identified by the specified srcURL. 57 // identified by the specified srcURL.
58 // 58 //
59 // FIXME: Rename this to registerURL or registerStream after experimental 59 // FIXME: Rename this to registerURL or registerStream after experimental
60 // implementation is done. 60 // implementation is done.
61 virtual void registerBlobURL(const WebURL&, const WebURL& srcURL) = 0; 61 virtual void registerBlobURL(const WebURL&, const WebURL& srcURL) = 0;
62 62
63 // Add data to the stream referred by the URL. 63 // Add data to the stream referred by the URL.
64 virtual void addDataToStream(const WebURL&, WebThreadSafeData&) { WEBKIT_ASS ERT_NOT_REACHED(); } 64 virtual void addDataToStream(const WebURL&, WebThreadSafeData&) = 0;
65 65
66 // Tell the registry that this stream won't receive any more data. 66 // Tell the registry that this stream won't receive any more data.
67 virtual void finalizeStream(const WebURL&) { WEBKIT_ASSERT_NOT_REACHED(); } 67 virtual void finalizeStream(const WebURL&) = 0;
68 68
69 // Unregisters a blob or stream referred by the URL. 69 // Unregisters a blob or stream referred by the URL.
70 // 70 //
71 // FIXME: Rename this to unregisterURL or unregisterStreamURL after 71 // FIXME: Rename this to unregisterURL or unregisterStreamURL after
72 // experimental implementation is done. 72 // experimental implementation is done.
73 virtual void unregisterBlobURL(const WebURL&) = 0; 73 virtual void unregisterBlobURL(const WebURL&) = 0;
74 }; 74 };
75 75
76 } // namespace WebKit 76 } // namespace WebKit
77 77
78 #endif // WebBlobRegistry_h 78 #endif // WebBlobRegistry_h
OLDNEW
« no previous file with comments | « Source/core/fileapi/FileReader.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698