mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 579517 follow-up: Remove NSPR types that crept in
This commit is contained in:
parent
86b407c027
commit
4b71a98ab2
@ -2458,7 +2458,7 @@ nsDocument::InitCSP(nsIChannel* aChannel)
|
||||
// ----- Figure out if we need to apply an app default CSP
|
||||
bool applyAppDefaultCSP = false;
|
||||
nsIPrincipal* principal = NodePrincipal();
|
||||
PRUint16 appStatus = nsIPrincipal::APP_STATUS_NOT_INSTALLED;
|
||||
uint16_t appStatus = nsIPrincipal::APP_STATUS_NOT_INSTALLED;
|
||||
bool unknownAppId;
|
||||
if (NS_SUCCEEDED(principal->GetUnknownAppId(&unknownAppId)) &&
|
||||
!unknownAppId &&
|
||||
|
@ -76,14 +76,14 @@ nsMixedContentBlocker::~nsMixedContentBlocker()
|
||||
NS_IMPL_ISUPPORTS1(nsMixedContentBlocker, nsIContentPolicy)
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMixedContentBlocker::ShouldLoad(PRUint32 aContentType,
|
||||
nsMixedContentBlocker::ShouldLoad(uint32_t aContentType,
|
||||
nsIURI* aContentLocation,
|
||||
nsIURI* aRequestingLocation,
|
||||
nsISupports* aRequestingContext,
|
||||
const nsACString& aMimeGuess,
|
||||
nsISupports* aExtra,
|
||||
nsIPrincipal* aRequestPrincipal,
|
||||
PRInt16* aDecision)
|
||||
int16_t* aDecision)
|
||||
{
|
||||
// Default policy: allow the load if we find no reason to block it.
|
||||
*aDecision = nsIContentPolicy::ACCEPT;
|
||||
@ -186,14 +186,14 @@ nsMixedContentBlocker::ShouldLoad(PRUint32 aContentType,
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMixedContentBlocker::ShouldProcess(PRUint32 aContentType,
|
||||
nsMixedContentBlocker::ShouldProcess(uint32_t aContentType,
|
||||
nsIURI* aContentLocation,
|
||||
nsIURI* aRequestingLocation,
|
||||
nsISupports* aRequestingContext,
|
||||
const nsACString& aMimeGuess,
|
||||
nsISupports* aExtra,
|
||||
nsIPrincipal* aRequestPrincipal,
|
||||
PRInt16* aDecision)
|
||||
int16_t* aDecision)
|
||||
{
|
||||
if(!aContentLocation) {
|
||||
// aContentLocation may be null when a plugin is loading without an associated URI resource
|
||||
|
@ -25,8 +25,8 @@ public:
|
||||
NS_IMPL_ISUPPORTS1(BluetoothRILTelephonyCallback, nsIRILTelephonyCallback)
|
||||
|
||||
NS_IMETHODIMP
|
||||
BluetoothRILTelephonyCallback::CallStateChanged(PRUint32 aCallIndex,
|
||||
PRUint16 aCallState,
|
||||
BluetoothRILTelephonyCallback::CallStateChanged(uint32_t aCallIndex,
|
||||
uint16_t aCallState,
|
||||
const nsAString& aNumber,
|
||||
bool aIsActive)
|
||||
{
|
||||
@ -38,8 +38,8 @@ BluetoothRILTelephonyCallback::CallStateChanged(PRUint32 aCallIndex,
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
BluetoothRILTelephonyCallback::EnumerateCallState(PRUint32 aCallIndex,
|
||||
PRUint16 aCallState,
|
||||
BluetoothRILTelephonyCallback::EnumerateCallState(uint32_t aCallIndex,
|
||||
uint16_t aCallState,
|
||||
const nsAString_internal& aNumber,
|
||||
bool aIsActive,
|
||||
bool* aResult)
|
||||
@ -49,7 +49,7 @@ BluetoothRILTelephonyCallback::EnumerateCallState(PRUint32 aCallIndex,
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
BluetoothRILTelephonyCallback::NotifyError(PRInt32 aCallIndex,
|
||||
BluetoothRILTelephonyCallback::NotifyError(int32_t aCallIndex,
|
||||
const nsAString& aError)
|
||||
{
|
||||
return NS_OK;
|
||||
|
@ -158,8 +158,8 @@ nsDOMCameraManager::Shutdown(uint64_t aWindowId)
|
||||
return;
|
||||
}
|
||||
|
||||
PRUint32 length = controls->Length();
|
||||
for (PRUint32 i = 0; i < length; i++) {
|
||||
uint32_t length = controls->Length();
|
||||
for (uint32_t i = 0; i < length; i++) {
|
||||
nsRefPtr<nsDOMCameraControl> cameraControl = controls->ElementAt(i);
|
||||
cameraControl->Shutdown();
|
||||
}
|
||||
|
@ -93,9 +93,9 @@ protected:
|
||||
android::MediaProfiles* mMediaProfiles;
|
||||
android::GonkRecorder* mRecorder;
|
||||
|
||||
PRUint32 mVideoRotation;
|
||||
PRUint32 mVideoWidth;
|
||||
PRUint32 mVideoHeight;
|
||||
uint32_t mVideoRotation;
|
||||
uint32_t mVideoWidth;
|
||||
uint32_t mVideoHeight;
|
||||
nsString mVideoFile;
|
||||
|
||||
// camcorder profile settings for the desired quality level
|
||||
|
@ -410,12 +410,12 @@ TabChild::HandlePossibleMetaViewportChange()
|
||||
nsCOMPtr<nsIDOMElement> htmlDOMElement = do_QueryInterface(document->GetHtmlElement());
|
||||
nsCOMPtr<nsIDOMElement> bodyDOMElement = do_QueryInterface(document->GetBodyElement());
|
||||
|
||||
PRInt32 htmlWidth = 0, htmlHeight = 0;
|
||||
int32_t htmlWidth = 0, htmlHeight = 0;
|
||||
if (htmlDOMElement) {
|
||||
htmlDOMElement->GetScrollWidth(&htmlWidth);
|
||||
htmlDOMElement->GetScrollHeight(&htmlHeight);
|
||||
}
|
||||
PRInt32 bodyWidth = 0, bodyHeight = 0;
|
||||
int32_t bodyWidth = 0, bodyHeight = 0;
|
||||
if (bodyDOMElement) {
|
||||
bodyDOMElement->GetScrollWidth(&bodyWidth);
|
||||
bodyDOMElement->GetScrollHeight(&bodyHeight);
|
||||
|
@ -463,7 +463,7 @@ nsAboutCacheEntry::OnCacheEntryAvailable(nsICacheEntryDescriptor *entry,
|
||||
rv = WriteCacheEntryUnavailable();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PRUint32 n;
|
||||
uint32_t n;
|
||||
NS_NAMED_LITERAL_CSTRING(buffer, "</body>\n</html>\n");
|
||||
mOutputStream->Write(buffer.get(), buffer.Length(), &n);
|
||||
mOutputStream->Close();
|
||||
|
@ -288,13 +288,13 @@ nsHttp::ParseInt64(const char *input, const char **next, int64_t *r)
|
||||
}
|
||||
|
||||
bool
|
||||
nsHttp::IsPermanentRedirect(PRUint32 httpStatus)
|
||||
nsHttp::IsPermanentRedirect(uint32_t httpStatus)
|
||||
{
|
||||
return httpStatus == 301 || httpStatus == 308;
|
||||
}
|
||||
|
||||
bool
|
||||
nsHttp::ShouldRewriteRedirectToGET(PRUint32 httpStatus, nsHttpAtom method)
|
||||
nsHttp::ShouldRewriteRedirectToGET(uint32_t httpStatus, nsHttpAtom method)
|
||||
{
|
||||
// for 301 and 302, only rewrite POST
|
||||
if (httpStatus == 301 || httpStatus == 302)
|
||||
|
@ -181,11 +181,11 @@ struct nsHttp
|
||||
}
|
||||
|
||||
// Return whether the HTTP status code represents a permanent redirect
|
||||
static bool IsPermanentRedirect(PRUint32 httpStatus);
|
||||
static bool IsPermanentRedirect(uint32_t httpStatus);
|
||||
|
||||
// Return whether upon a redirect code of httpStatus for method, the
|
||||
// request method should be rewritten to GET.
|
||||
static bool ShouldRewriteRedirectToGET(PRUint32 httpStatus, nsHttpAtom method);
|
||||
static bool ShouldRewriteRedirectToGET(uint32_t httpStatus, nsHttpAtom method);
|
||||
|
||||
// Return whether the specified method is safe as per RFC 2616,
|
||||
// Section 9.1.1.
|
||||
|
Loading…
Reference in New Issue
Block a user