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

Issue 9666059: Extract ExtensionFunctionRegistry from ExtensionFunctionDispatcher. (Closed)

Created:
8 years, 9 months ago by miket_OOO
Modified:
8 years, 9 months ago
CC:
chromium-reviews, pam+watch_chromium.org, mihaip+watch_chromium.org
Visibility:
Public.

Description

Refactor extension_function_dispatcher to extract ExtensionFunctionRegistry. This allows us to generate an additional code block that takes an ExtensionFunctionRegistry and asks it to register generated API functions. Then switch DnsResolve over to get registered this way. Along the way, notice that DNSResolve is capitalized using an untenable style. Fix that. BUG=none (essential plumbing work) TEST=same as before Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=127159

Patch Set 1 : Patch Set 1 #

Total comments: 2

Patch Set 2 : Explicit constructor; don't inline. #

Total comments: 3

Patch Set 3 : Fix Windows build (path separator) #

Total comments: 2

Patch Set 4 : asargent's changes. #

Total comments: 3

Patch Set 5 : aa's changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -929 lines) Patch
M build/json_schema_compile.gypi View 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/dns/dns_api.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/dns/dns_api.cc View 6 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/dns/dns_apitest.cc View 7 chunks +17 lines, -17 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 4 chunks +7 lines, -527 lines 0 comments Download
A chrome/browser/extensions/extension_function_registry.h View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 8 chunks +19 lines, -334 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/compiler.py View 1 2 3 4 chunks +72 lines, -23 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 chunk +4 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/cpp_util.py View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/h_bundle_generator.py View 1 2 3 4 1 chunk +79 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/h_generator.py View 2 chunks +2 lines, -11 lines 0 comments Download
M tools/json_schema_compiler/test/json_schema_compiler_tests.gyp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
miket_OOO
http://codereview.chromium.org/9666059/diff/14016/chrome/browser/extensions/extension_factory_registry.cc File chrome/browser/extensions/extension_factory_registry.cc (left): http://codereview.chromium.org/9666059/diff/14016/chrome/browser/extensions/extension_factory_registry.cc#oldcode22 chrome/browser/extensions/extension_factory_registry.cc:22: #include "chrome/browser/extensions/api/dns/dns_api.h" This is one line of manually written ...
8 years, 9 months ago (2012-03-14 00:00:25 UTC) #1
asargent_no_longer_on_chrome
LGTM http://codereview.chromium.org/9666059/diff/17001/chrome/browser/extensions/extension_function_dispatcher.cc File chrome/browser/extensions/extension_function_dispatcher.cc (left): http://codereview.chromium.org/9666059/diff/17001/chrome/browser/extensions/extension_function_dispatcher.cc#oldcode115 chrome/browser/extensions/extension_function_dispatcher.cc:115: class FactoryRegistry { nit: can you change the ...
8 years, 9 months ago (2012-03-14 22:46:07 UTC) #2
miket_OOO
http://codereview.chromium.org/9666059/diff/17001/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): http://codereview.chromium.org/9666059/diff/17001/tools/json_schema_compiler/compiler.py#newcode124 tools/json_schema_compiler/compiler.py:124: .Generate().Render()) On 2012/03/14 22:46:07, Antony Sargent wrote: > nit: ...
8 years, 9 months ago (2012-03-14 22:55:16 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/9666059/10020
8 years, 9 months ago (2012-03-14 23:07:42 UTC) #4
commit-bot: I haz the power
Try job failure for 9666059-10020 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-15 01:47:22 UTC) #5
Aaron Boodman
http://codereview.chromium.org/9666059/diff/10020/chrome/browser/extensions/api/dns/dns_api.h File chrome/browser/extensions/api/dns/dns_api.h (right): http://codereview.chromium.org/9666059/diff/10020/chrome/browser/extensions/api/dns/dns_api.h#newcode22 chrome/browser/extensions/api/dns/dns_api.h:22: class DnsResolveFunction : public AsyncExtensionFunction { No! $ cd ...
8 years, 9 months ago (2012-03-15 02:27:47 UTC) #6
miket_OOO
> chrome/browser/extensions/api/dns/dns_api.h:22: class DnsResolveFunction : > public AsyncExtensionFunction { > No! Antony, Mihai, and I ...
8 years, 9 months ago (2012-03-15 16:01:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/9666059/15034
8 years, 9 months ago (2012-03-15 19:25:10 UTC) #8
commit-bot: I haz the power
Try job failure for 9666059-15034 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-15 22:44:33 UTC) #9
Aaron Boodman
lgtm
8 years, 9 months ago (2012-03-16 07:53:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/9666059/15034
8 years, 9 months ago (2012-03-16 13:08:21 UTC) #11
commit-bot: I haz the power
8 years, 9 months ago (2012-03-16 14:33:29 UTC) #12
Change committed as 127159

Powered by Google App Engine
This is Rietveld 408576698