| 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_EXTENSIONS_EXTENSION_INSTALL_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_DIALOG_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_DIALOG_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "chrome/browser/extensions/extension_install_prompt.h" | 13 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 14 | 14 |
| 15 class Browser; | |
| 16 | |
| 17 namespace base { | 15 namespace base { |
| 18 class DictionaryValue; | 16 class DictionaryValue; |
| 19 } | 17 } |
| 20 | 18 |
| 21 void ShowExtensionInstallDialog(Browser* browser, | 19 void ShowExtensionInstallDialog(gfx::NativeWindow parent, |
| 20 content::PageNavigator* navigator, |
| 22 ExtensionInstallPrompt::Delegate* delegate, | 21 ExtensionInstallPrompt::Delegate* delegate, |
| 23 const ExtensionInstallPrompt::Prompt& prompt); | 22 const ExtensionInstallPrompt::Prompt& prompt); |
| 24 | 23 |
| 25 // The implementations of this function are platform-specific. | 24 // The implementations of this function are platform-specific. |
| 26 void ShowExtensionInstallDialogImpl( | 25 void ShowExtensionInstallDialogImpl( |
| 27 Browser* browser, | 26 gfx::NativeWindow parent, |
| 27 content::PageNavigator* navigator, |
| 28 ExtensionInstallPrompt::Delegate* delegate, | 28 ExtensionInstallPrompt::Delegate* delegate, |
| 29 const ExtensionInstallPrompt::Prompt& prompt); | 29 const ExtensionInstallPrompt::Prompt& prompt); |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_DIALOG_H_ | 31 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_DIALOG_H_ |
| OLD | NEW |