зеркало из https://github.com/mozilla/pjs.git
Renaming xpcom file streams. b=73169, r=sfraser@netscape.com, sr=darin@netscape.com
This commit is contained in:
Родитель
08df5f0ca3
Коммит
d68387a443
|
@ -170,7 +170,7 @@ protected:
|
|||
char* mTarget;
|
||||
nsFileURL mFileURL;
|
||||
nsFileSpec mFileSpec;
|
||||
nsCOMPtr<nsIFileOutputStream> mFileThing;
|
||||
nsCOMPtr<nsIFileSpecOutputStream> mFileThing;
|
||||
nsIPluginInstanceOwner* mOwner;
|
||||
};
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ protected:
|
|||
char* mTarget;
|
||||
nsFileURL mFileURL;
|
||||
nsFileSpec mFileSpec;
|
||||
nsCOMPtr<nsIFileOutputStream> mFileThing;
|
||||
nsCOMPtr<nsIFileSpecOutputStream> mFileThing;
|
||||
nsIPluginInstanceOwner* mOwner;
|
||||
};
|
||||
|
||||
|
|
|
@ -503,7 +503,7 @@ protected:
|
|||
|
||||
// DATA
|
||||
protected:
|
||||
nsCOMPtr<nsIFileInputStream> mFileInputStream;
|
||||
nsCOMPtr<nsIFileSpecInputStream> mFileInputStream;
|
||||
}; // class nsInputFileStream
|
||||
|
||||
//========================================================================================
|
||||
|
@ -637,7 +637,7 @@ protected:
|
|||
|
||||
// DATA
|
||||
protected:
|
||||
nsCOMPtr<nsIFileOutputStream> mFileOutputStream;
|
||||
nsCOMPtr<nsIFileSpecOutputStream> mFileOutputStream;
|
||||
}; // class nsOutputFileStream
|
||||
|
||||
//========================================================================================
|
||||
|
@ -757,7 +757,7 @@ public:
|
|||
|
||||
// DATA
|
||||
protected:
|
||||
nsCOMPtr<nsIFileOutputStream> mFileOutputStream;
|
||||
nsCOMPtr<nsIFileSpecOutputStream> mFileOutputStream;
|
||||
}; // class nsIOFileStream
|
||||
|
||||
//========================================================================================
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
//========================================================================================
|
||||
class FileImpl
|
||||
: public nsIRandomAccessStore
|
||||
, public nsIFileOutputStream
|
||||
, public nsIFileInputStream
|
||||
, public nsIFileSpecOutputStream
|
||||
, public nsIFileSpecInputStream
|
||||
, public nsIOpenFile
|
||||
//========================================================================================
|
||||
{
|
||||
|
@ -112,8 +112,8 @@ NS_IMPL_QUERY_HEAD(FileImpl)
|
|||
NS_IMPL_QUERY_BODY(nsIRandomAccessStore)
|
||||
NS_IMPL_QUERY_BODY(nsIOutputStream)
|
||||
NS_IMPL_QUERY_BODY(nsIInputStream)
|
||||
NS_IMPL_QUERY_BODY(nsIFileInputStream)
|
||||
NS_IMPL_QUERY_BODY(nsIFileOutputStream)
|
||||
NS_IMPL_QUERY_BODY(nsIFileSpecInputStream)
|
||||
NS_IMPL_QUERY_BODY(nsIFileSpecOutputStream)
|
||||
NS_IMPL_QUERY_TAIL(nsIOutputStream)
|
||||
|
||||
|
||||
|
|
|
@ -78,12 +78,12 @@ public:
|
|||
// and mozilla/netwerks/base/nsIFileStreams.idl
|
||||
|
||||
/* a6cf90e6-15b3-11d2-932e-00805f8add32 */
|
||||
#define NS_IFILEINPUTSTREAM_IID \
|
||||
#define NS_IFILESPECINPUTSTREAM_IID \
|
||||
{ 0xa6cf90e6, 0x15b3, 0x11d2, \
|
||||
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
|
||||
|
||||
//========================================================================================
|
||||
class nsIFileInputStream
|
||||
class nsIFileSpecInputStream
|
||||
// These are additional file-specific methods that files have, above what
|
||||
// nsIInputStream supports. The current implementation supports both
|
||||
// interfaces.
|
||||
|
@ -91,16 +91,16 @@ class nsIFileInputStream
|
|||
: public nsIInputStream
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IFILEINPUTSTREAM_IID; return iid; }
|
||||
}; // class nsIFileInputStream
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IFILESPECINPUTSTREAM_IID; return iid; }
|
||||
}; // class nsIFileSpecInputStream
|
||||
|
||||
/* a6cf90e7-15b3-11d2-932e-00805f8add32 */
|
||||
#define NS_IFILEOUTPUTSTREAM_IID \
|
||||
#define NS_IFILESPECOUTPUTSTREAM_IID \
|
||||
{ 0xa6cf90e7, 0x15b3, 0x11d2, \
|
||||
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
|
||||
|
||||
//========================================================================================
|
||||
class nsIFileOutputStream
|
||||
class nsIFileSpecOutputStream
|
||||
// These are additional file-specific methods that files have, above what
|
||||
// nsIOutputStream supports. The current implementation supports both
|
||||
// interfaces.
|
||||
|
@ -108,8 +108,8 @@ class nsIFileOutputStream
|
|||
: public nsIOutputStream
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IFILEOUTPUTSTREAM_IID; return iid; }
|
||||
}; // class nsIFileOutputStream
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IFILESPECOUTPUTSTREAM_IID; return iid; }
|
||||
}; // class nsIFileSpecOutputStream
|
||||
|
||||
#endif // NO_XPCOM_FILE_STREAMS
|
||||
|
||||
|
@ -152,4 +152,4 @@ extern "C" NS_COM nsresult NS_NewIOFileStream(
|
|||
// Factory method to get an object that implements both nsIInputStream
|
||||
// and nsIOutputStream, associated with a single file.
|
||||
|
||||
#endif /* nsIFileStream_h___ */
|
||||
#endif /* nsIFileSpecStream_h___ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче