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

Unified Diff: content/public/test/browser_test_utils.h

Issue 1231083007: Expose distiller functions to JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-content
Patch Set: Move dependencies to correct files Created 5 years, 3 months 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
Index: content/public/test/browser_test_utils.h
diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h
index f05f4037b4c0980626b8c48ff7d30397a63adcfd..ee1d9038213a32b40c833db54d4096a3f444c986 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -194,6 +194,14 @@ bool ExecuteScriptAndExtractString(const ToRenderFrameHost& adapter,
const std::string& script,
std::string* result) WARN_UNUSED_RESULT;
+// This function behaves similarly to ExecuteScriptAndExtractBool but runs the
+// the script in the specified isolated world.
+bool ExecuteScriptInIsolatedWorldAndExtractBool(
+ const ToRenderFrameHost& adapter,
+ const int world_id,
+ const std::string& script,
+ bool* result) WARN_UNUSED_RESULT;
+
// Walks the frame tree of the specified WebContents and returns the sole frame
// that matches the specified predicate function. This function will DCHECK if
// no frames match the specified predicate, or if more than one frame matches.

Powered by Google App Engine
This is Rietveld 408576698