summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_host.h
diff options
context:
space:
mode:
authoryumiOS.art@gmail.com <yumiOS.art@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-29 22:56:43 +0000
committeryumiOS.art@gmail.com <yumiOS.art@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-29 22:56:43 +0000
commit55df9099f9350d906d7b03a4390687ac95269210 (patch)
treebc1282df838f668fa9323b11e6b39ea14986ed02 /chrome/browser/extensions/extension_host.h
parentff10b13ea905ed7f9813f62ab95fa7fef3cc7390 (diff)
downloadchromium_src-55df9099f9350d906d7b03a4390687ac95269210.zip
chromium_src-55df9099f9350d906d7b03a4390687ac95269210.tar.gz
chromium_src-55df9099f9350d906d7b03a4390687ac95269210.tar.bz2
Refine the dialog box to show a extension name when the dialog box is created by the extension.
Contributed by yumios.art@gmail.com BUG=112637 TEST=Try to create dialog boxes by a extension and a website(localhost). Review URL: http://codereview.chromium.org/9426022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124275 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_host.h')
-rw-r--r--chrome/browser/extensions/extension_host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h
index 6d27b68..5047b22 100644
--- a/chrome/browser/extensions/extension_host.h
+++ b/chrome/browser/extensions/extension_host.h
@@ -227,6 +227,11 @@ class ExtensionHost : public content::WebContentsDelegate,
// Optional view that shows the rendered content in the UI.
scoped_ptr<PlatformExtensionView> view_;
+ // Used to create dialog boxes.
+ // It must outlive host_contents_ as host_contents_ will access it
+ // during destruction.
+ scoped_ptr<content::JavaScriptDialogCreator> dialog_creator_;
+
// The host for our HTML content.
scoped_ptr<content::WebContents> host_contents_;