| 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 fe91c6493610c4d43be31dad75d70dd9fe33ef95..ac7889dc7e2854790e6c459f5a9a11291fde492d 100644
|
| --- a/content/public/browser/web_ui_message_handler.h
|
| +++ b/content/public/browser/web_ui_message_handler.h
|
| @@ -44,6 +44,9 @@ 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:
|
| @@ -103,6 +106,8 @@ class CONTENT_EXPORT WebUIMessageHandler {
|
| // Called when a RenderView is reused to display a page (i.e. reload).
|
| void RenderViewReused();
|
|
|
| + // TODO(dbeam): disallow JavaScript when a renderer process crashes.
|
| +
|
| // True if the page is for JavaScript calls from this handler.
|
| bool javascript_allowed_;
|
|
|
|
|