1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_
6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_
9 class JavaScriptDialogManager;
12 namespace extensions {
16 // Returns a JavaScriptDialogManager that creates real dialogs.
17 // It returns a Singleton instance of JavaScriptDialogManager,
18 // which should not be deleted.
19 content::JavaScriptDialogManager* GetJavaScriptDialogManagerInstance();
21 // Creates and returns a JavaScriptDialogManager owned by |extension_host|.
22 // This is not the Singleton instance, so the caller must delete it.
23 content::JavaScriptDialogManager* CreateJavaScriptDialogManagerInstance(
24 extensions::ExtensionHost* extension_host);
26 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_