layout/inspector/inSearchLoop.h
author Yoshi Huang <allstars.chh@mozilla.com>
Mon, 17 Aug 2015 17:03:19 +0800
changeset 293817 0d60bb207d3ee76cfc8896cfb5dc2a43f7082202
parent 225756 9d4e083655b993f73ba3eca84e0f14cdd270bcda
permissions -rw-r--r--
Bug 1165272 - Part 1: remove getAppCodebasePrincipal. r=bholley

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

#include "nsCOMPtr.h"
#include "nsITimer.h"
#include "inISearchProcess.h"

class inSearchLoop
{
public:
  explicit inSearchLoop(inISearchProcess* aSearchProcess);
  virtual ~inSearchLoop();

  nsresult Start();
  nsresult Step();
  nsresult Stop();
  static void TimerCallback(nsITimer *aTimer, void *aClosure);

protected:
  nsCOMPtr<nsITimer> mTimer;
  nsCOMPtr<inISearchProcess> mSearchProcess;
};

#endif