EmbedPromptRegister.h 970 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/* -*- 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 EmbedPromptRegister_H_
#define EmbedPromptRegister_H_

#include "nsWeakReference.h"
#include "nsIObserver.h"

class EmbedPromptRegister : public nsIObserver,
14
                            public nsSupportsWeakReference
15 16 17 18 19 20 21 22
{
public:
    EmbedPromptRegister();

    NS_DECL_ISUPPORTS
    NS_DECL_NSIOBSERVER

    nsresult Init();
23 24 25

private:
    virtual ~EmbedPromptRegister();
26 27 28 29 30
};

#define NS_EMBED_PROMPT_CONTRACTID "@mozilla.org/embed-prompt-component;1"
#define NS_EMBED_PROMPT_SERVICE_CLASSNAME "Embed Prompt Component"
#define NS_EMBED_PROMPT_SERVICE_CID \
Tatiana Meshkova's avatar
Tatiana Meshkova committed
31 32
{ 0xd64e5366, \
  0x6e88, \
33
  0x11e2, \
Tatiana Meshkova's avatar
Tatiana Meshkova committed
34
  { 0xae, 0x17, 0x5b, 0xbd, 0xc0, 0x83, 0xa0 }}
35 36

#endif /*EmbedPromptRegister_H_*/