browser/components/feeds/src/nsFeedSniffer.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6
michael@0 7 #include "nsIContentSniffer.h"
michael@0 8 #include "nsIStreamListener.h"
michael@0 9 #include "nsStringAPI.h"
michael@0 10 #include "mozilla/Attributes.h"
michael@0 11
michael@0 12 class nsFeedSniffer MOZ_FINAL : public nsIContentSniffer,
michael@0 13 nsIStreamListener
michael@0 14 {
michael@0 15 public:
michael@0 16 NS_DECL_ISUPPORTS
michael@0 17 NS_DECL_NSICONTENTSNIFFER
michael@0 18 NS_DECL_NSIREQUESTOBSERVER
michael@0 19 NS_DECL_NSISTREAMLISTENER
michael@0 20
michael@0 21 static NS_METHOD AppendSegmentToString(nsIInputStream* inputStream,
michael@0 22 void* closure,
michael@0 23 const char* rawSegment,
michael@0 24 uint32_t toOffset,
michael@0 25 uint32_t count,
michael@0 26 uint32_t* writeCount);
michael@0 27
michael@0 28 protected:
michael@0 29 nsresult ConvertEncodedData(nsIRequest* request, const uint8_t* data,
michael@0 30 uint32_t length);
michael@0 31
michael@0 32 private:
michael@0 33 nsCString mDecodedData;
michael@0 34 };
michael@0 35

mercurial