michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef PROFILERIOINTERPOSEOBSERVER_H michael@0: #define PROFILERIOINTERPOSEOBSERVER_H michael@0: michael@0: #ifdef MOZ_ENABLE_PROFILER_SPS michael@0: michael@0: #include "mozilla/IOInterposer.h" michael@0: michael@0: namespace mozilla { michael@0: michael@0: /** michael@0: * This class is the observer that calls into the profiler whenever michael@0: * main thread I/O occurs. michael@0: */ michael@0: class ProfilerIOInterposeObserver MOZ_FINAL : public IOInterposeObserver michael@0: { michael@0: public: michael@0: virtual void Observe(Observation& aObservation); michael@0: }; michael@0: michael@0: } // namespace mozilla michael@0: michael@0: #endif // MOZ_ENABLE_PROFILER_SPS michael@0: michael@0: #endif // PROFILERIOINTERPOSEOBSERVER_H