Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4274)

Unified Diff: chrome/test/base/js_injection_ready_observer.h

Issue 8586009: Allow WebUI Tests to use preLoad in HtmlDialogUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/js2gtest.js ('k') | chrome/test/base/test_html_dialog_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9c3029c90a51ae73cb9be8d5bc5cfaf1a2b7ff61
--- /dev/null
+++ b/chrome/test/base/js_injection_ready_observer.h
@@ -0,0 +1,23 @@
+// 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:
+ virtual ~JsInjectionReadyObserver() {}
+};
+
+#endif // CHROME_TEST_BASE_JS_INJECTION_READY_OBSERVER_H_
« no previous file with comments | « chrome/test/base/js2gtest.js ('k') | chrome/test/base/test_html_dialog_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698