| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_API_DASHBOARD_PRIVATE_DASHBOARD_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DASHBOARD_PRIVATE_DASHBOARD_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_DASHBOARD_PRIVATE_DASHBOARD_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DASHBOARD_PRIVATE_DASHBOARD_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_delegate.h" | 12 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_delegate.h" |
| 13 #include "chrome/browser/extensions/chrome_extension_function_details.h" | 13 #include "chrome/browser/extensions/chrome_extension_function_details.h" |
| 14 #include "chrome/browser/extensions/extension_install_prompt.h" | 14 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 15 #include "chrome/browser/extensions/webstore_install_helper.h" | 15 #include "chrome/browser/extensions/webstore_install_helper.h" |
| 16 #include "chrome/common/extensions/api/dashboard_private.h" | 16 #include "chrome/common/extensions/api/dashboard_private.h" |
| 17 #include "extensions/browser/extension_function.h" | 17 #include "extensions/browser/extension_function.h" |
| 18 | 18 |
| 19 class GURL; | |
| 20 class SkBitmap; | 19 class SkBitmap; |
| 21 | 20 |
| 22 namespace chrome { | |
| 23 class BitmapFetcher; | |
| 24 } // namespace chrome | |
| 25 | |
| 26 namespace extensions { | 21 namespace extensions { |
| 27 | 22 |
| 28 class Extension; | 23 class Extension; |
| 29 | 24 |
| 30 class DashboardPrivateShowPermissionPromptForDelegatedInstallFunction | 25 class DashboardPrivateShowPermissionPromptForDelegatedInstallFunction |
| 31 : public UIThreadExtensionFunction, | 26 : public UIThreadExtensionFunction, |
| 32 public WebstoreInstallHelper::Delegate { | 27 public WebstoreInstallHelper::Delegate { |
| 33 public: | 28 public: |
| 34 DECLARE_EXTENSION_FUNCTION( | 29 DECLARE_EXTENSION_FUNCTION( |
| 35 "dashboardPrivate.showPermissionPromptForDelegatedInstall", | 30 "dashboardPrivate.showPermissionPromptForDelegatedInstall", |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 std::unique_ptr<ExtensionInstallPrompt> install_prompt_; | 68 std::unique_ptr<ExtensionInstallPrompt> install_prompt_; |
| 74 | 69 |
| 75 DISALLOW_COPY_AND_ASSIGN( | 70 DISALLOW_COPY_AND_ASSIGN( |
| 76 DashboardPrivateShowPermissionPromptForDelegatedInstallFunction); | 71 DashboardPrivateShowPermissionPromptForDelegatedInstallFunction); |
| 77 }; | 72 }; |
| 78 | 73 |
| 79 } // namespace extensions | 74 } // namespace extensions |
| 80 | 75 |
| 81 #endif // CHROME_BROWSER_EXTENSIONS_API_DASHBOARD_PRIVATE_DASHBOARD_PRIVATE_API
_H_ | 76 #endif // CHROME_BROWSER_EXTENSIONS_API_DASHBOARD_PRIVATE_DASHBOARD_PRIVATE_API
_H_ |
| 82 | 77 |
| OLD | NEW |