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

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

Issue 2099563002: WebUI: DisallowJavascript only on Refresh and non-same-page navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix style 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_message_handler.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 67f5fb2da343030cebdd1305422114f2fb28ad90..3dc9808f8857994249c10e22bc9e3a5f42cf77e3 100644
--- a/content/public/browser/web_ui_message_handler.h
+++ b/content/public/browser/web_ui_message_handler.h
@@ -42,6 +42,8 @@ class CONTENT_EXPORT WebUIMessageHandler {
// is needed from production code, just publicize AllowJavascript() instead.
void AllowJavascriptForTesting();
+ bool IsJavascriptAllowed() const;
+
protected:
FRIEND_TEST_ALL_PREFIXES(WebUIMessageHandlerTest, ExtractIntegerValue);
FRIEND_TEST_ALL_PREFIXES(WebUIMessageHandlerTest, ExtractDoubleValue);
@@ -51,8 +53,6 @@ class CONTENT_EXPORT WebUIMessageHandler {
// from this handler.
void AllowJavascript();
- bool IsJavascriptAllowed() const;
-
// Helper methods:
// Extract an integer value from a list Value.
@@ -121,9 +121,6 @@ class CONTENT_EXPORT WebUIMessageHandler {
friend class WebUIImpl;
friend class ::WebUIBrowserTest;
- // Called when a RenderView is reused to display a page (i.e. reload).
- void RenderViewReused();
-
// TODO(dbeam): disallow JavaScript when a renderer process crashes.
// http://crbug.com/610450
« no previous file with comments | « content/browser/webui/web_ui_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698