dom/ipc/nsICachedFileDescriptorListener.h
author Dave Townsend <dtownsend@oxymoronical.com>
Mon, 17 Nov 2014 14:08:07 -0800
changeset 216073 872f2f8a6c0d9517fab6cfd3dae2f44a49cfea4e
parent 121131 4b47185f48f8ab06d1abaff5ecde31cc209dade1
child 242178 bd079aadd3feeee3f9b9f73c5e0bc4bd6a870722
permissions -rw-r--r--
Bug 1060138: Fix SDK context-menu API to work in e10s. r=zombie

/* 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 mozilla_dom_ipc_nsICachedFileDescriptorListener_h
#define mozilla_dom_ipc_nsICachedFileDescriptorListener_h

#include "nsISupports.h"

#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

#define NS_ICACHEDFILEDESCRIPTORLISTENER_IID \
  {0x2cedaee0, 0x6ef2, 0x4f60, {0x9a, 0x6c, 0xdf, 0x4e, 0x4d, 0x65, 0x6a, 0xf7}}

class nsAString;

namespace mozilla {
namespace ipc {
class FileDescriptor;
}
}

class NS_NO_VTABLE nsICachedFileDescriptorListener : public nsISupports
{
public:
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEDFILEDESCRIPTORLISTENER_IID)

  virtual void
  OnCachedFileDescriptor(const nsAString& aPath,
                         const mozilla::ipc::FileDescriptor& aFD) = 0;
};

NS_DEFINE_STATIC_IID_ACCESSOR(nsICachedFileDescriptorListener,
                              NS_ICACHEDFILEDESCRIPTORLISTENER_IID)

#endif // mozilla_dom_ipc_nsICachedFileDescriptorListener_h