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

Unified Diff: content/public/browser/web_ui_message_handler.h

Issue 2041993002: WebUI: Fix lifecycle-bug when RenderFrameHost is swapped out (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/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_ui_message_handler.h
diff --git a/content/public/browser/web_ui_message_handler.h b/content/public/browser/web_ui_message_handler.h
index ed0117931f59bc8cc8db1b135a2c606aea0c2015..20c1afcf500be770a999fffd8f373ac6f66c9c0c 100644
--- a/content/public/browser/web_ui_message_handler.h
+++ b/content/public/browser/web_ui_message_handler.h
@@ -35,6 +35,9 @@ class CONTENT_EXPORT WebUIMessageHandler {
WebUIMessageHandler() : javascript_allowed_(false), web_ui_(nullptr) {}
virtual ~WebUIMessageHandler() {}
+ // Call this when a page should not receive JavaScript messages.
+ void DisallowJavascript();
+
protected:
FRIEND_TEST_ALL_PREFIXES(WebUIMessageHandlerTest, ExtractIntegerValue);
FRIEND_TEST_ALL_PREFIXES(WebUIMessageHandlerTest, ExtractDoubleValue);
@@ -44,9 +47,6 @@ class CONTENT_EXPORT WebUIMessageHandler {
// from this handler.
void AllowJavascript();
- // Call this when a page should not receive JavaScript messages.
- void DisallowJavascript();
-
bool IsJavascriptAllowed() const;
// Helper methods:
« no previous file with comments | « content/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698