| 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 EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_ |
| 6 #define EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_ | 6 #define EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/scoped_observer.h" | 9 #include "base/scoped_observer.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 scoped_ptr<InstallPromptDelegate> install_prompt_; | 129 scoped_ptr<InstallPromptDelegate> install_prompt_; |
| 130 | 130 |
| 131 scoped_ptr<RequirementsChecker> requirements_checker_; | 131 scoped_ptr<RequirementsChecker> requirements_checker_; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 class ManagementUninstallFunctionBase : public UIThreadExtensionFunction { | 134 class ManagementUninstallFunctionBase : public UIThreadExtensionFunction { |
| 135 public: | 135 public: |
| 136 ManagementUninstallFunctionBase(); | 136 ManagementUninstallFunctionBase(); |
| 137 | 137 |
| 138 static void SetAutoConfirmForTest(bool should_proceed); | |
| 139 | |
| 140 void OnExtensionUninstallDialogClosed(bool did_start_uninstall, | 138 void OnExtensionUninstallDialogClosed(bool did_start_uninstall, |
| 141 const base::string16& error); | 139 const base::string16& error); |
| 142 | 140 |
| 143 protected: | 141 protected: |
| 144 ~ManagementUninstallFunctionBase() override; | 142 ~ManagementUninstallFunctionBase() override; |
| 145 ResponseAction Uninstall(const std::string& extension_id, | 143 ResponseAction Uninstall(const std::string& extension_id, |
| 146 bool show_confirm_dialog); | 144 bool show_confirm_dialog); |
| 147 | 145 |
| 148 private: | 146 private: |
| 149 // Uninstalls the extension without showing the dialog. | 147 // Uninstalls the extension without showing the dialog. |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 scoped_ptr<ManagementEventRouter> management_event_router_; | 285 scoped_ptr<ManagementEventRouter> management_event_router_; |
| 288 | 286 |
| 289 scoped_ptr<ManagementAPIDelegate> delegate_; | 287 scoped_ptr<ManagementAPIDelegate> delegate_; |
| 290 | 288 |
| 291 DISALLOW_COPY_AND_ASSIGN(ManagementAPI); | 289 DISALLOW_COPY_AND_ASSIGN(ManagementAPI); |
| 292 }; | 290 }; |
| 293 | 291 |
| 294 } // namespace extensions | 292 } // namespace extensions |
| 295 | 293 |
| 296 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_ | 294 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_ |
| OLD | NEW |