netwerk/base/src/StreamingProtocolService.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/base/src/StreamingProtocolService.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef mozilla_net_StreamingProtocolControllerService_h
     1.9 +#define mozilla_net_StreamingProtocolControllerService_h
    1.10 +
    1.11 +#include "mozilla/StaticPtr.h"
    1.12 +#include "nsIStreamingProtocolService.h"
    1.13 +#include "nsIStreamingProtocolController.h"
    1.14 +#include "nsCOMPtr.h"
    1.15 +#include "nsIChannel.h"
    1.16 +
    1.17 +namespace mozilla {
    1.18 +namespace net {
    1.19 +
    1.20 +/**
    1.21 + * This class implements a service to help to create streaming protocol controller.
    1.22 + */
    1.23 +class StreamingProtocolControllerService : public nsIStreamingProtocolControllerService
    1.24 +{
    1.25 +public:
    1.26 +  NS_DECL_ISUPPORTS
    1.27 +  NS_DECL_NSISTREAMINGPROTOCOLCONTROLLERSERVICE
    1.28 +
    1.29 +  StreamingProtocolControllerService() {};
    1.30 +  virtual ~StreamingProtocolControllerService() {};
    1.31 +  static already_AddRefed<StreamingProtocolControllerService> GetInstance();
    1.32 +};
    1.33 +} // namespace dom
    1.34 +} // namespace mozilla
    1.35 +
    1.36 +#endif //mozilla_net_StreamingProtocolControllerService_h

mercurial