2012-02-07 09:22:30 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2012-02-07 09:22:30 -08:00
|
|
|
|
|
|
|
#ifndef COMPONENTS_JSINSPECTOR_H
|
|
|
|
#define COMPONENTS_JSINSPECTOR_H
|
|
|
|
|
|
|
|
#include "nsIJSInspector.h"
|
2012-07-18 09:12:55 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2013-11-06 02:45:59 -08:00
|
|
|
#include "nsCycleCollectionParticipant.h"
|
2013-04-09 04:17:03 -07:00
|
|
|
#include "nsTArray.h"
|
|
|
|
#include "js/Value.h"
|
2013-11-06 02:45:59 -08:00
|
|
|
#include "js/RootingAPI.h"
|
2012-02-07 09:22:30 -08:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace jsinspector {
|
|
|
|
|
2012-07-18 09:12:55 -07:00
|
|
|
class nsJSInspector MOZ_FINAL : public nsIJSInspector
|
2012-02-07 09:22:30 -08:00
|
|
|
{
|
|
|
|
public:
|
2013-11-06 02:45:59 -08:00
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(nsJSInspector)
|
2012-02-07 09:22:30 -08:00
|
|
|
NS_DECL_NSIJSINSPECTOR
|
|
|
|
|
|
|
|
nsJSInspector();
|
|
|
|
|
|
|
|
private:
|
|
|
|
~nsJSInspector();
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t mNestedLoopLevel;
|
2013-11-06 02:45:59 -08:00
|
|
|
nsTArray<JS::Heap<JS::Value> > mRequestors;
|
|
|
|
JS::Heap<JS::Value> mLastRequestor;
|
2012-02-07 09:22:30 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|