Chromium Code Reviews| Index: chrome/browser/ui/app_list/arc/arc_app_utils.h |
| diff --git a/chrome/browser/ui/app_list/arc/arc_app_utils.h b/chrome/browser/ui/app_list/arc/arc_app_utils.h |
| index bd9ba934fcd8f61dce07b8f925aedac90717ba3b..1f1cabea5b33e6c071319343f7b5087332c7105c 100644 |
| --- a/chrome/browser/ui/app_list/arc/arc_app_utils.h |
| +++ b/chrome/browser/ui/app_list/arc/arc_app_utils.h |
| @@ -14,8 +14,13 @@ namespace content { |
| class BrowserContext; |
| } |
| +namespace mojo { |
| +class String; |
| +} |
| + |
| namespace arc { |
| using CanHandleResolutionCallback = base::Callback<void(bool)>; |
| +using UninstallAppCallback = base::Callback<void(const mojo::String&)>; |
| } |
| namespace arc { |
|
xiyuan
2016/03/08 16:40:11
nit: Can we combine this with the one started at l
victorhsieh0
2016/03/08 18:02:52
Done.
|
| @@ -29,7 +34,12 @@ bool LaunchApp(content::BrowserContext* context, const std::string& app_id); |
| bool CanHandleResolution(content::BrowserContext* context, |
| const std::string& app_id, |
| const gfx::Rect& rect, |
| - const CanHandleResolutionCallback callback); |
| + const CanHandleResolutionCallback& callback); |
| + |
| +// Uninstalls the package in ARC. |
| +bool UninstallApp(const std::string& package_name, |
| + const UninstallAppCallback& callback); |
| +void OnUninstallAppResponse(const mojo::String& error_message); |
| } // namespace arc |