// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_TEST_JS_INJECTION_READY_OBSERVER_H_ #define CONTENT_TEST_JS_INJECTION_READY_OBSERVER_H_ #pragma once namespace content { class RenderViewHost; } // Interface to notify when JavaScript injection is possible. class JsInjectionReadyObserver { public: // Called to indicate page entry committed and ready for JavaScript // injection. |render_view_host| may be used to route injection messages to // the appropriate RenderView. virtual void OnJsInjectionReady( content::RenderViewHost* render_view_host) = 0; protected: virtual ~JsInjectionReadyObserver() {} }; #endif // CONTENT_TEST_JS_INJECTION_READY_OBSERVER_H_