netwerk/protocol/wyciwyg/nsWyciwygProtocolHandler.h
author Josh Matthews <josh@joshmatthews.net>
Fri, 11 Jan 2013 15:40:25 +0100
changeset 128394 44dcffe8792b49ce4ef2e6471f61e1af5ff62b5e
parent 128343 c1b3fd0a0195d769e42fecc942398bab734e2818
child 171262 66a063b14ddbfd82e8029d12a3577c72927d9d5d
permissions -rw-r--r--
Bug 829043 - Separate wyciwyg cache into app jars. r=michal.novotny

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 *
 * 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/. */

#ifndef nsWyciwygProtocolHandler_h___
#define nsWyciwygProtocolHandler_h___

#include "nsIProtocolHandler.h"
#include "nsIObserver.h"
#include "nsWeakReference.h"
            
class nsWyciwygProtocolHandler : public nsIProtocolHandler
                               , public nsIObserver
                               , public nsSupportsWeakReference
{
public:
    NS_DECL_ISUPPORTS
    NS_DECL_NSIPROTOCOLHANDLER
    NS_DECL_NSIOBSERVER

    nsWyciwygProtocolHandler();
    virtual ~nsWyciwygProtocolHandler();

    nsresult Init();

    static void GetCacheSessionName(uint32_t aAppId,
                                    bool aInBrowser,
                                    bool aPrivateBrowsing,
                                    nsACString& aSessionName);
};

#endif /* nsWyciwygProtocolHandler_h___ */