Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_TEST_BASE_JS_INJECTION_READY_OBSERVER_H_ | |
| 6 #define CHROME_TEST_BASE_JS_INJECTION_READY_OBSERVER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 class RenderViewHost; | |
| 10 | |
| 11 // Interface to notify when JavaScript injection is possible. | |
| 12 class JsInjectionReadyObserver { | |
| 13 public: | |
| 14 JsInjectionReadyObserver(); | |
| 15 virtual ~JsInjectionReadyObserver(); | |
|
James Hawkins
2011/11/27 19:28:26
Move destructor to protected.
Sheridan Rawlins
2011/11/29 06:57:16
Also moved constructor to adhere to interface requ
| |
| 16 | |
| 17 // Called to indicate page entry committed and ready for JavaScript | |
| 18 // injection. |render_view_host| may be used to route injection messages to | |
| 19 // the appropriate RenderView. | |
| 20 virtual void OnJsInjectionReady(RenderViewHost* render_view_host) = 0; | |
| 21 }; | |
| 22 | |
| 23 #endif // CHROME_TEST_BASE_JS_INJECTION_READY_OBSERVER_H_ | |
| OLD | NEW |