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

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

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « content/public/browser/web_ui_message_handler.h ('k') | content/public/test/test_web_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_web_ui.h
diff --git a/content/public/test/test_web_ui.h b/content/public/test/test_web_ui.h
index eedd787821e4ea332bc0395cce8b27090e2bbbf8..261512c72745fbb267818cccc469babf5730ebd6 100644
--- a/content/public/test/test_web_ui.h
+++ b/content/public/test/test_web_ui.h
@@ -15,7 +15,7 @@
namespace content {
// Test instance of WebUI that tracks the data passed to
-// CallJavascriptFunction().
+// CallJavascriptFunctionUnsafe().
class TestWebUI : public WebUI {
public:
TestWebUI();
@@ -45,22 +45,22 @@ class TestWebUI : public WebUI {
const std::string& message,
const base::ListValue& args) override {}
bool CanCallJavascript() override;
- void CallJavascriptFunction(const std::string& function_name) override;
- void CallJavascriptFunction(const std::string& function_name,
- const base::Value& arg1) override;
- void CallJavascriptFunction(const std::string& function_name,
- const base::Value& arg1,
- const base::Value& arg2) override;
- void CallJavascriptFunction(const std::string& function_name,
- const base::Value& arg1,
- const base::Value& arg2,
- const base::Value& arg3) override;
- void CallJavascriptFunction(const std::string& function_name,
- const base::Value& arg1,
- const base::Value& arg2,
- const base::Value& arg3,
- const base::Value& arg4) override;
- void CallJavascriptFunction(
+ void CallJavascriptFunctionUnsafe(const std::string& function_name) override;
+ void CallJavascriptFunctionUnsafe(const std::string& function_name,
+ const base::Value& arg1) override;
+ void CallJavascriptFunctionUnsafe(const std::string& function_name,
+ const base::Value& arg1,
+ const base::Value& arg2) override;
+ void CallJavascriptFunctionUnsafe(const std::string& function_name,
+ const base::Value& arg1,
+ const base::Value& arg2,
+ const base::Value& arg3) override;
+ void CallJavascriptFunctionUnsafe(const std::string& function_name,
+ const base::Value& arg1,
+ const base::Value& arg2,
+ const base::Value& arg3,
+ const base::Value& arg4) override;
+ void CallJavascriptFunctionUnsafe(
const std::string& function_name,
const std::vector<const base::Value*>& args) override;
« no previous file with comments | « content/public/browser/web_ui_message_handler.h ('k') | content/public/test/test_web_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698