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

Side by Side Diff: gecko-sdk/include/nsIUnicharStreamListener.h

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 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 | « gecko-sdk/include/nsIURL.h ('k') | gecko-sdk/include/nsIUploadChannel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0 -Release/WINNT_5.2_Depend/mozilla/netwerk/base/public/nsIUnicharStreamListener.i dl
3 */
4
5 #ifndef __gen_nsIUnicharStreamListener_h__
6 #define __gen_nsIUnicharStreamListener_h__
7
8
9 #ifndef __gen_nsIRequestObserver_h__
10 #include "nsIRequestObserver.h"
11 #endif
12
13 /* For IDL files that don't want to include root IDL files. */
14 #ifndef NS_NO_VTABLE
15 #define NS_NO_VTABLE
16 #endif
17
18 /* starting interface: nsIUnicharStreamListener */
19 #define NS_IUNICHARSTREAMLISTENER_IID_STR "4a7e9b62-fef8-400d-9865-d6820f630b4c"
20
21 #define NS_IUNICHARSTREAMLISTENER_IID \
22 {0x4a7e9b62, 0xfef8, 0x400d, \
23 { 0x98, 0x65, 0xd6, 0x82, 0x0f, 0x63, 0x0b, 0x4c }}
24
25 /**
26 * nsIUnicharStreamListener is very similar to nsIStreamListener with
27 * the difference being that this interface gives notifications about
28 * data being available after the raw data has been converted to
29 * UTF-16.
30 *
31 * nsIUnicharStreamListener
32 *
33 * @status FROZEN
34 */
35 class NS_NO_VTABLE nsIUnicharStreamListener : public nsIRequestObserver {
36 public:
37
38 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IUNICHARSTREAMLISTENER_IID)
39
40 /**
41 * Called when the next chunk of data (corresponding to the
42 * request) is available.
43 *
44 * @param aRequest request corresponding to the source of the data
45 * @param aContext user defined context
46 * @param aData the data chunk
47 *
48 * An exception thrown from onUnicharDataAvailable has the
49 * side-effect of causing the request to be canceled.
50 */
51 /* void onUnicharDataAvailable (in nsIRequest aRequest, in nsISupports aContex t, in AString aData); */
52 NS_IMETHOD OnUnicharDataAvailable(nsIRequest *aRequest, nsISupports *aContext, const nsAString & aData) = 0;
53
54 };
55
56 /* Use this macro when declaring classes that implement this interface. */
57 #define NS_DECL_NSIUNICHARSTREAMLISTENER \
58 NS_IMETHOD OnUnicharDataAvailable(nsIRequest *aRequest, nsISupports *aContext, const nsAString & aData);
59
60 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
61 #define NS_FORWARD_NSIUNICHARSTREAMLISTENER(_to) \
62 NS_IMETHOD OnUnicharDataAvailable(nsIRequest *aRequest, nsISupports *aContext, const nsAString & aData) { return _to OnUnicharDataAvailable(aRequest, aContext , aData); }
63
64 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
65 #define NS_FORWARD_SAFE_NSIUNICHARSTREAMLISTENER(_to) \
66 NS_IMETHOD OnUnicharDataAvailable(nsIRequest *aRequest, nsISupports *aContext, const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUnichar DataAvailable(aRequest, aContext, aData); }
67
68 #if 0
69 /* Use the code below as a template for the implementation class for this interf ace. */
70
71 /* Header file */
72 class nsUnicharStreamListener : public nsIUnicharStreamListener
73 {
74 public:
75 NS_DECL_ISUPPORTS
76 NS_DECL_NSIUNICHARSTREAMLISTENER
77
78 nsUnicharStreamListener();
79
80 private:
81 ~nsUnicharStreamListener();
82
83 protected:
84 /* additional members */
85 };
86
87 /* Implementation file */
88 NS_IMPL_ISUPPORTS1(nsUnicharStreamListener, nsIUnicharStreamListener)
89
90 nsUnicharStreamListener::nsUnicharStreamListener()
91 {
92 /* member initializers and constructor code */
93 }
94
95 nsUnicharStreamListener::~nsUnicharStreamListener()
96 {
97 /* destructor code */
98 }
99
100 /* void onUnicharDataAvailable (in nsIRequest aRequest, in nsISupports aContext, in AString aData); */
101 NS_IMETHODIMP nsUnicharStreamListener::OnUnicharDataAvailable(nsIRequest *aReque st, nsISupports *aContext, const nsAString & aData)
102 {
103 return NS_ERROR_NOT_IMPLEMENTED;
104 }
105
106 /* End of implementation class template. */
107 #endif
108
109
110 #endif /* __gen_nsIUnicharStreamListener_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIURL.h ('k') | gecko-sdk/include/nsIUploadChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698