mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
WebDAV, NPOTB.
DELETE can return a multistatus, so enhance the API a bit to convey that data. We don't call the detailed-report facet yet at all, but it's there for when we do!
This commit is contained in:
parent
140228c846
commit
68c683d7fe
@ -80,3 +80,10 @@ interface nsIWebDAVOperationListener : nsISupports
|
||||
void onMakeCollectionResult(in unsigned long aStatusCode,
|
||||
in nsIWebDAVResource aResource);
|
||||
};
|
||||
|
||||
[scriptable,uuid(be99d517-9161-4a7d-8bee-2ee98c1c2c6f)]
|
||||
interface nsIWebDAVDetailedOperationListener : nsIWebDAVOperationListener
|
||||
{
|
||||
void onResultDetail(in unsigned long statusCode, in AUTF8String resource,
|
||||
in AString method);
|
||||
};
|
||||
|
@ -86,7 +86,7 @@ interface nsIWebDAVService : nsISupports
|
||||
in nsIWebDAVOperationListener listener);
|
||||
|
||||
void remove(in nsIWebDAVResource resource,
|
||||
in nsIWebDAVOperationListener listener);
|
||||
in nsIWebDAVDetailedOperationListener listener);
|
||||
|
||||
void moveTo(in nsIWebDAVResourceWithTarget resource,
|
||||
in nsIWebDAVOperationListener listener);
|
||||
|
@ -511,7 +511,7 @@ nsWebDAVService::Put(nsIWebDAVResourceWithData *resource,
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebDAVService::Remove(nsIWebDAVResource *resource,
|
||||
nsIWebDAVOperationListener *listener)
|
||||
nsIWebDAVDetailedOperationListener *listener)
|
||||
{
|
||||
nsCOMPtr<nsIHttpChannel> channel;
|
||||
nsresult rv = ChannelFromResource(resource, getter_AddRefs(channel));
|
||||
|
Loading…
Reference in New Issue
Block a user