| Index: chrome/browser/extensions/api/developer_private/developer_private_api.h
|
| diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.h b/chrome/browser/extensions/api/developer_private/developer_private_api.h
|
| index b54a33abb2a628d8f7cae67f5bc869b26349aa36..09b0ae46e9b30eff387e695b75618cd25e3b0f77 100644
|
| --- a/chrome/browser/extensions/api/developer_private/developer_private_api.h
|
| +++ b/chrome/browser/extensions/api/developer_private/developer_private_api.h
|
| @@ -188,44 +188,43 @@ class DeveloperPrivateAutoUpdateFunction : public ChromeSyncExtensionFunction {
|
| };
|
|
|
| class DeveloperPrivateGetItemsInfoFunction
|
| - : public ChromeAsyncExtensionFunction {
|
| + : public DeveloperPrivateAPIFunction {
|
| public:
|
| DECLARE_EXTENSION_FUNCTION("developerPrivate.getItemsInfo",
|
| DEVELOPERPRIVATE_GETITEMSINFO)
|
| + DeveloperPrivateGetItemsInfoFunction();
|
|
|
| - protected:
|
| + private:
|
| ~DeveloperPrivateGetItemsInfoFunction() override;
|
| + ResponseAction Run() override;
|
|
|
| - // ExtensionFunction:
|
| - bool RunAsync() override;
|
| + void GetIconsOnFileThread(
|
| + std::map<std::string, ExtensionResource> resource_map);
|
| + void Finish();
|
| +
|
| + ItemInfoList item_list_;
|
| +};
|
| +
|
| +class DeveloperPrivateGetExtensionsInfoFunction
|
| + : public DeveloperPrivateAPIFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionsInfo",
|
| + DEVELOPERPRIVATE_GETEXTENSIONSINFO);
|
|
|
| private:
|
| - scoped_ptr<developer::ItemInfo> CreateItemInfo(const Extension& item,
|
| - bool item_is_enabled);
|
| + ~DeveloperPrivateGetExtensionsInfoFunction() override;
|
| + ResponseAction Run() override;
|
| +};
|
|
|
| - void GetIconsOnFileThread(
|
| - ItemInfoList item_list,
|
| - std::map<std::string, ExtensionResource> itemIdToIconResourceMap);
|
| -
|
| - // Helper that lists the current inspectable html pages for the extension.
|
| - void GetInspectablePagesForExtensionProcess(
|
| - const Extension* extension,
|
| - const std::set<content::RenderViewHost*>& views,
|
| - ItemInspectViewList* result);
|
| -
|
| - ItemInspectViewList GetInspectablePagesForExtension(
|
| - const Extension* extension,
|
| - bool extension_is_enabled);
|
| -
|
| - void GetAppWindowPagesForExtensionProfile(const Extension* extension,
|
| - ItemInspectViewList* result);
|
| -
|
| - linked_ptr<developer::ItemInspectView> constructInspectView(
|
| - const GURL& url,
|
| - int render_process_id,
|
| - int render_view_id,
|
| - bool incognito,
|
| - bool generated_background_page);
|
| +class DeveloperPrivateGetExtensionInfoFunction
|
| + : public DeveloperPrivateAPIFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionInfo",
|
| + DEVELOPERPRIVATE_GETEXTENSIONINFO);
|
| +
|
| + private:
|
| + ~DeveloperPrivateGetExtensionInfoFunction() override;
|
| + ResponseAction Run() override;
|
| };
|
|
|
| class DeveloperPrivateInspectFunction : public UIThreadExtensionFunction {
|
|
|