mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 05:11:03 +00:00
07da6b90ed
- Bug 1248822 - In LayerManagerComposite::UpdateAndRender(), call PostProcessLayers() before LayerTreeInvalidation. r=mattwoodrow (503f81f51f) - Bug 1259541 - Reduce clearing backbuffer in nsBaseWidget::CreateBackBufferDrawTarget() r=mattwoodrow (4f8cf8ab04) - Bug 1174461 - [e10s] Return a cached result from SendGetNativePluginPort (r=jimm) a=kwierso (fff65b95ac) - Bug 1263200 - Reset the APZ pointer in the base widget to null if the compositor creation fails. r=mstange (109d4a16a8) - Bug 1264161 - Ensure we null out APZ pointers to the widget when it gets destroyed. r=botond (fdb516451e) - Bug 1260018 - Route drag events to APZ, so it can accurately detect the end of a drag. r=kats (acd2b4a051) - Remove drawWidgetAsOnScreen. (bug 1264393, r=mattwoodrow, webidl r=khuey) (b0ce23eacc) - Bug 1254151 - use B8G8R8X8 for 24 bit depth visuals in nsShmImage with Cairo. r=jrmuizel (070ef9495d) - Bug 1218955 - Remove nsIMEPicker, r=jchen (83adb6c582) - Bug 1255655 - Const-ify keysymtab. r=karlt. (d9544cbf0c) - Bug 1165048 - Music playback is getting stopped and is not resumed when modem is restarted. r=mwu (d3f99f8542) - Bug 1264183. Remove unused argument to nsView::InvalidateHierarchy. r=mats (218ce04623) - Bug 1210617 - [e10s] Implement PrivateBrowsingChannel for ExternalHelperAppParent. r=jduell (36e6ab7635) - Bug 1258087 - Fix -Wunreachable-code warning in StartupCache.cpp on macosx64-mulet. r=froydnj (5f88df6993) - Bug 1329798 - Include sys/sysmacros.h for major(), minor() on Linux. r=glandium, a=jcristau (a5c4073eb2) - guard for non-linux system again or mac & FreeBSD fail to compile (6b5d2856b6)
96 lines
2.8 KiB
C++
96 lines
2.8 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "mozilla/dom/PExternalHelperAppParent.h"
|
|
#include "nsIChannel.h"
|
|
#include "nsIMultiPartChannel.h"
|
|
#include "nsIResumableChannel.h"
|
|
#include "nsIStreamListener.h"
|
|
#include "nsHashPropertyBag.h"
|
|
#include "PrivateBrowsingChannel.h"
|
|
|
|
namespace IPC {
|
|
class URI;
|
|
} // namespace IPC
|
|
|
|
namespace mozilla {
|
|
|
|
namespace ipc {
|
|
class OptionalURIParams;
|
|
} // namespace ipc
|
|
|
|
namespace net {
|
|
class PChannelDiverterParent;
|
|
} // namespace net
|
|
|
|
namespace dom {
|
|
|
|
class ContentParent;
|
|
class PBrowserParent;
|
|
|
|
class ExternalHelperAppParent : public PExternalHelperAppParent
|
|
, public nsHashPropertyBag
|
|
, public nsIChannel
|
|
, public nsIMultiPartChannel
|
|
, public nsIResumableChannel
|
|
, public nsIStreamListener
|
|
, public net::PrivateBrowsingChannel<ExternalHelperAppParent>
|
|
{
|
|
typedef mozilla::ipc::OptionalURIParams OptionalURIParams;
|
|
|
|
public:
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
NS_DECL_NSIREQUEST
|
|
NS_DECL_NSICHANNEL
|
|
NS_DECL_NSIMULTIPARTCHANNEL
|
|
NS_DECL_NSIRESUMABLECHANNEL
|
|
NS_DECL_NSISTREAMLISTENER
|
|
NS_DECL_NSIREQUESTOBSERVER
|
|
|
|
bool RecvOnStartRequest(const nsCString& entityID) override;
|
|
bool RecvOnDataAvailable(const nsCString& data,
|
|
const uint64_t& offset,
|
|
const uint32_t& count) override;
|
|
bool RecvOnStopRequest(const nsresult& code) override;
|
|
|
|
bool RecvDivertToParentUsing(PChannelDiverterParent* diverter) override;
|
|
|
|
ExternalHelperAppParent(const OptionalURIParams& uri, const int64_t& contentLength);
|
|
void Init(ContentParent *parent,
|
|
const nsCString& aMimeContentType,
|
|
const nsCString& aContentDisposition,
|
|
const uint32_t& aContentDispositionHint,
|
|
const nsString& aContentDispositionFilename,
|
|
const bool& aForceSave,
|
|
const OptionalURIParams& aReferrer,
|
|
PBrowserParent* aBrowser);
|
|
|
|
protected:
|
|
virtual ~ExternalHelperAppParent();
|
|
|
|
virtual void ActorDestroy(ActorDestroyReason why) override;
|
|
void Delete();
|
|
|
|
private:
|
|
nsCOMPtr<nsIStreamListener> mListener;
|
|
nsCOMPtr<nsIURI> mURI;
|
|
bool mPending;
|
|
#ifdef DEBUG
|
|
bool mDiverted;
|
|
#endif
|
|
bool mIPCClosed;
|
|
nsLoadFlags mLoadFlags;
|
|
nsresult mStatus;
|
|
int64_t mContentLength;
|
|
uint32_t mContentDisposition;
|
|
nsString mContentDispositionFilename;
|
|
nsCString mContentDispositionHeader;
|
|
nsCString mEntityID;
|
|
};
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|