Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3141)

Unified Diff: chrome/browser/extensions/api/developer_private/developer_private_api.h

Issue 989813002: [Extensions] Make a chrome.developerPrivate.getExtensionsInfo function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698