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