OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_MESSAGE_BOX_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_CREATOR_H_ |
6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_MESSAGE_BOX_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_CREATOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 class JavaScriptDialogCreator; | 10 class JavaScriptDialogCreator; |
11 } | 11 } |
12 | 12 |
13 class ExtensionHost; | 13 class ExtensionHost; |
14 | 14 |
15 // Returns a JavaScriptDialogCreator that creates real dialogs. | 15 // Returns a JavaScriptDialogCreator that creates real dialogs. |
16 // It returns a Singleton instance of JavaScriptDialogCreator, | 16 // It returns a Singleton instance of JavaScriptDialogCreator, |
17 // which should not be deleted. | 17 // which should not be deleted. |
18 content::JavaScriptDialogCreator* GetJavaScriptDialogCreatorInstance(); | 18 content::JavaScriptDialogCreator* GetJavaScriptDialogCreatorInstance(); |
19 | 19 |
20 // Creates and returns a JavaScriptDialogCreator owned by |extension_host|. | 20 // Creates and returns a JavaScriptDialogCreator owned by |extension_host|. |
21 // This is not the Singleton instance, so the caller must delete it. | 21 // This is not the Singleton instance, so the caller must delete it. |
22 content::JavaScriptDialogCreator* CreateJavaScriptDialogCreatorInstance( | 22 content::JavaScriptDialogCreator* CreateJavaScriptDialogCreatorInstance( |
23 ExtensionHost* extension_host); | 23 ExtensionHost* extension_host); |
24 | 24 |
25 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_MESSAGE_BOX_HANDLER_H_ | 25 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_CREATOR_H_ |
OLD | NEW |