diff --git a/content/base/public/nsIDocument.h b/content/base/public/nsIDocument.h index 8548c9b0a0f..112c5294912 100644 --- a/content/base/public/nsIDocument.h +++ b/content/base/public/nsIDocument.h @@ -66,6 +66,8 @@ class nsIWordBreaker; class nsIPostData : public nsISupports { public: + static const nsIID& GetIID() { static nsIID iid = NS_IPOSTDATA_IID; return iid; } + virtual PRBool IsFile() = 0; // is the data a file (or raw data) virtual const char* GetData() = 0; // get the file name or raw data virtual PRInt32 GetDataLength() = 0; @@ -76,6 +78,8 @@ public: // Document interface class nsIDocument : public nsISupports { public: + static const nsIID& GetIID() { static nsIID iid = NS_IDOCUMENT_IID; return iid; } + // All documents have a memory arena associated with them which is // used for memory allocation during document creation. This call // returns the arena associated with this document. diff --git a/layout/base/public/nsIDocument.h b/layout/base/public/nsIDocument.h index 8548c9b0a0f..112c5294912 100644 --- a/layout/base/public/nsIDocument.h +++ b/layout/base/public/nsIDocument.h @@ -66,6 +66,8 @@ class nsIWordBreaker; class nsIPostData : public nsISupports { public: + static const nsIID& GetIID() { static nsIID iid = NS_IPOSTDATA_IID; return iid; } + virtual PRBool IsFile() = 0; // is the data a file (or raw data) virtual const char* GetData() = 0; // get the file name or raw data virtual PRInt32 GetDataLength() = 0; @@ -76,6 +78,8 @@ public: // Document interface class nsIDocument : public nsISupports { public: + static const nsIID& GetIID() { static nsIID iid = NS_IDOCUMENT_IID; return iid; } + // All documents have a memory arena associated with them which is // used for memory allocation during document creation. This call // returns the arena associated with this document.