netwerk/protocol/app/AppProtocolHandler.h

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     2 /* vim:set expandtab ts=4 sw=4 sts=4 cin: */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #ifndef AppProtocolHandler_
     8 #define AppProtocolHandler_
    10 #include "nsIProtocolHandler.h"
    11 #include "nsClassHashtable.h"
    12 #include "mozilla/dom/AppInfoBinding.h"
    14 class AppProtocolHandler : public nsIProtocolHandler
    15 {
    16 public:
    17   NS_DECL_ISUPPORTS
    19   // nsIProtocolHandler methods:
    20   NS_DECL_NSIPROTOCOLHANDLER
    22   // AppProtocolHandler methods:
    23   AppProtocolHandler();
    24   virtual ~AppProtocolHandler();
    26   // Define a Create method to be used with a factory:
    27   static nsresult Create(nsISupports* aOuter,
    28                          const nsIID& aIID,
    29                          void* *aResult);
    31 private:
    32   nsClassHashtable<nsCStringHashKey, mozilla::dom::AppInfo> mAppInfoCache;
    33 };
    35 #endif /* AppProtocolHandler_ */

mercurial