Chromium Code Reviews| Index: chrome/test/base/js_injection_ready_observer.h |
| diff --git a/chrome/test/base/js_injection_ready_observer.h b/chrome/test/base/js_injection_ready_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..85d6b797fddfd020b04303c93f08cf28c1a44b17 |
| --- /dev/null |
| +++ b/chrome/test/base/js_injection_ready_observer.h |
| @@ -0,0 +1,24 @@ |
| +// 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 CHROME_TEST_BASE_JS_INJECTION_READY_OBSERVER_H_ |
| +#define CHROME_TEST_BASE_JS_INJECTION_READY_OBSERVER_H_ |
| +#pragma once |
| + |
| +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(RenderViewHost* render_view_host) = 0; |
| + |
| + protected: |
| + JsInjectionReadyObserver(); |
|
James Hawkins
2011/11/29 18:20:54
Remove the constructor. We don't add constructors
Sheridan Rawlins
2011/11/29 23:56:49
Done.
|
| + virtual ~JsInjectionReadyObserver(); |
| +}; |
| + |
| +#endif // CHROME_TEST_BASE_JS_INJECTION_READY_OBSERVER_H_ |