Index: content/browser/tab_contents/tab_contents_delegate.h |
diff --git a/content/browser/tab_contents/tab_contents_delegate.h b/content/browser/tab_contents/tab_contents_delegate.h |
index 16d4e7a2c31c111738dd54a10bdd38d5357dd203..0645128b9add09ea15037d25547eb3260f806efb 100644 |
--- a/content/browser/tab_contents/tab_contents_delegate.h |
+++ b/content/browser/tab_contents/tab_contents_delegate.h |
@@ -15,6 +15,10 @@ |
#include "ui/gfx/native_widget_types.h" |
#include "webkit/glue/window_open_disposition.h" |
+namespace content { |
+class JavaScriptDialogCreator; |
+} |
+ |
namespace gfx { |
class Point; |
class Rect; |
@@ -299,6 +303,11 @@ class TabContentsDelegate { |
TabContents* tab, |
const MainFrameCommitDetails& details); |
+ // Returns a pointer to a service to create JavaScript dialogs. The default |
+ // pointer returned is to a stub service that marks all dialogs as suppressed |
+ // and displays nothing. |
+ virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); |
+ |
protected: |
virtual ~TabContentsDelegate(); |
}; |