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

Unified Diff: ppapi/tests/test_post_message.h

Issue 16140011: Don't send PP_Vars/V8 values with cycles across PostMessage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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: ppapi/tests/test_post_message.h
diff --git a/ppapi/tests/test_post_message.h b/ppapi/tests/test_post_message.h
index 3ea69e898b382d064bb718a23cb787246cbc3097..2f2f6287c087d4cab70a64505ddc4f1bb9964334 100644
--- a/ppapi/tests/test_post_message.h
+++ b/ppapi/tests/test_post_message.h
@@ -34,6 +34,10 @@ class TestPostMessage : public TestCase {
// Returns true on success, false on failure.
bool AddEchoingListener(const std::string& expression);
+ // Posts a message from JavaScript to the plugin. |func| should be a
+ // JavaScript function which returns the variable to post.
+ bool PostMessageFromJavaScript(const std::string& func);
+
// Clear any listeners that have been added using AddEchoingListener by
// calling removeEventListener for each.
// Returns true on success, false on failure.

Powered by Google App Engine
This is Rietveld 408576698