Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: chrome/browser/ui/app_modal_dialogs/javascript_dialog_creator.h

Issue 10824030: Move ExtensionHost into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_JAVASCRIPT_DIALOG_CREATOR_H_ 5 #ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_CREATOR_H_
6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_CREATOR_H_ 6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_CREATOR_H_
7 7
8 namespace content { 8 namespace content {
9 class JavaScriptDialogCreator; 9 class JavaScriptDialogCreator;
10 } 10 }
11 11
12 namespace extensions {
12 class ExtensionHost; 13 class ExtensionHost;
14 }
13 15
14 // Returns a JavaScriptDialogCreator that creates real dialogs. 16 // Returns a JavaScriptDialogCreator that creates real dialogs.
15 // It returns a Singleton instance of JavaScriptDialogCreator, 17 // It returns a Singleton instance of JavaScriptDialogCreator,
16 // which should not be deleted. 18 // which should not be deleted.
17 content::JavaScriptDialogCreator* GetJavaScriptDialogCreatorInstance(); 19 content::JavaScriptDialogCreator* GetJavaScriptDialogCreatorInstance();
18 20
19 // Creates and returns a JavaScriptDialogCreator owned by |extension_host|. 21 // Creates and returns a JavaScriptDialogCreator owned by |extension_host|.
20 // This is not the Singleton instance, so the caller must delete it. 22 // This is not the Singleton instance, so the caller must delete it.
21 content::JavaScriptDialogCreator* CreateJavaScriptDialogCreatorInstance( 23 content::JavaScriptDialogCreator* CreateJavaScriptDialogCreatorInstance(
22 ExtensionHost* extension_host); 24 extensions::ExtensionHost* extension_host);
23 25
24 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_CREATOR_H_ 26 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_CREATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698