dom/filesystem/FileSystemRequestParent.h
author David Major <dmajor@mozilla.com>
Wed, 20 Dec 2017 09:07:46 -0500
changeset 448763 e9cfe039a796e2963a6d3e7d2a161b02cdbadcac
parent 394736 c539b2e9f9c926c73809deaaf66289c20147e191
child 505383 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1425906: Rename LINK to LINKER throughout the build system. r=glandium Windows linkers give special meaning to getenv("LINK"), which makes `export LINK=...` in mozconfigs do unexpected things.

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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_FileSystemRequestParent_h
#define mozilla_dom_FileSystemRequestParent_h

#include "mozilla/dom/PFileSystemRequestParent.h"
#include "mozilla/dom/FileSystemBase.h"

namespace mozilla {
namespace dom {

class FileSystemParams;
class FileSystemTaskParentBase;

class FileSystemRequestParent final : public PFileSystemRequestParent
{
  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FileSystemRequestParent)

public:
  FileSystemRequestParent();

  bool
  Initialize(const FileSystemParams& aParams);

  void
  Start();

  bool Destroyed() const
  {
    return mDestroyed;
  }

  virtual void
  ActorDestroy(ActorDestroyReason why) override;

private:
  ~FileSystemRequestParent();

  RefPtr<FileSystemBase> mFileSystem;
  RefPtr<FileSystemTaskParentBase> mTask;

  bool mDestroyed;
};

} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_FileSystemRequestParent_h