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

Issue 12522004: Lazily load extension API schemas (Closed)

Created:
7 years, 9 months ago by cduvall
Modified:
7 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Lazily load extension API schemas Now all the extensions API schemas are loaded lazily, to avoid the memory overhead of loading them upfront. Also, the API feature system now can use the URL to determine availability of the API. APIs can now be checked for availability separately, without needing to load all the APIs. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190058

Patch Set 1 #

Total comments: 8

Patch Set 2 : fixes #

Total comments: 24

Patch Set 3 : take out dependencies #

Total comments: 19

Patch Set 4 : more fixes #

Total comments: 5

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -416 lines) Patch
M chrome/common/extensions/api/bookmark_manager_private.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/browser_action.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/context_menus.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/devtools/panels.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/experimental_infobars.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/extension.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/extension_api.h View 1 2 5 chunks +25 lines, -26 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 3 4 10 chunks +67 lines, -136 lines 0 comments Download
M chrome/common/extensions/api/extension_api_unittest.cc View 1 5 chunks +55 lines, -33 lines 0 comments Download
M chrome/common/extensions/api/page_action.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/privacy.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/proxy.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/runtime.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/script_badge.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/session_restore.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/tabs.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/tts_engine.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/web_request_internal.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/webstore.json View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/webview.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/windows.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/features/complex_feature.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/features/complex_feature.cc View 1 2 2 chunks +9 lines, -5 lines 0 comments Download
M chrome/common/extensions/features/feature.h View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/common/extensions/features/manifest_feature.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/features/manifest_feature.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/features/permission_feature.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/features/permission_feature.cc View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M chrome/common/extensions/features/simple_feature.h View 1 2 4 chunks +18 lines, -3 lines 0 comments Download
M chrome/common/extensions/features/simple_feature.cc View 1 2 3 7 chunks +49 lines, -15 lines 0 comments Download
M chrome/renderer/extensions/api_definitions_natives.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/api_definitions_natives.cc View 1 2 3 2 chunks +7 lines, -23 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.h View 1 2 chunks +1 line, -8 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.cc View 1 3 chunks +6 lines, -28 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 1 chunk +7 lines, -26 lines 0 comments Download
M chrome/renderer/resources/extensions/test_custom_bindings.js View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M tools/json_schema_compiler/compiler.py View 1 2 3 3 chunks +11 lines, -51 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 2 3 3 chunks +7 lines, -16 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator_test.py View 1 2 3 7 chunks +31 lines, -12 lines 0 comments Download
M tools/json_schema_compiler/preview.py View 1 2 2 chunks +4 lines, -1 line 0 comments Download
A tools/json_schema_compiler/schema_loader.py View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
not at google - send to devlin
At a high level - cool. You should address that TODO that we talked about ...
7 years, 9 months ago (2013-03-14 19:16:46 UTC) #1
cduvall
Waiting for https://codereview.chromium.org/12647017/ to go in. I ran all the Extension* tests with that patched ...
7 years, 9 months ago (2013-03-21 22:27:55 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/12522004/diff/19001/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): https://codereview.chromium.org/12522004/diff/19001/chrome/common/extensions/api/extension_api.cc#newcode427 chrome/common/extensions/api/extension_api.cc:427: ResolveDependencies(&dependency_names); as I mentioned in IRC - I think ...
7 years, 9 months ago (2013-03-22 18:13:48 UTC) #3
cduvall
https://codereview.chromium.org/12522004/diff/19001/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): https://codereview.chromium.org/12522004/diff/19001/chrome/common/extensions/api/extension_api.cc#newcode427 chrome/common/extensions/api/extension_api.cc:427: ResolveDependencies(&dependency_names); On 2013/03/22 18:13:48, kalman wrote: > as I ...
7 years, 9 months ago (2013-03-22 20:26:45 UTC) #4
not at google - send to devlin
basically lg just want to check that last set of changes. https://codereview.chromium.org/12522004/diff/27002/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): ...
7 years, 9 months ago (2013-03-22 22:10:12 UTC) #5
cduvall
https://codereview.chromium.org/12522004/diff/27002/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): https://codereview.chromium.org/12522004/diff/27002/chrome/common/extensions/api/extension_api.cc#newcode436 chrome/common/extensions/api/extension_api.cc:436: if (feature_type == "api" && !UsesFeatureSystem(feature_name)) { On 2013/03/22 ...
7 years, 9 months ago (2013-03-22 22:52:29 UTC) #6
not at google - send to devlin
lgtm https://codereview.chromium.org/12522004/diff/48004/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): https://codereview.chromium.org/12522004/diff/48004/chrome/common/extensions/api/extension_api.cc#newcode426 chrome/common/extensions/api/extension_api.cc:426: ResolveDependencies(&dependency_names); shouldn't this come after inserting full_name into ...
7 years, 9 months ago (2013-03-22 23:04:30 UTC) #7
cduvall
https://codereview.chromium.org/12522004/diff/48004/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): https://codereview.chromium.org/12522004/diff/48004/chrome/common/extensions/api/extension_api.cc#newcode426 chrome/common/extensions/api/extension_api.cc:426: ResolveDependencies(&dependency_names); On 2013/03/22 23:04:30, kalman wrote: > shouldn't this ...
7 years, 9 months ago (2013-03-22 23:20:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12522004/62001
7 years, 9 months ago (2013-03-22 23:22:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12522004/62001
7 years, 9 months ago (2013-03-23 14:57:40 UTC) #10
commit-bot: I haz the power
7 years, 9 months ago (2013-03-23 18:49:32 UTC) #11
Message was sent while issue was closed.
Change committed as 190058

Powered by Google App Engine
This is Rietveld 408576698