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

Issue 159882: Implements extensions devtools API (Closed)

Created:
11 years, 4 months ago by jamesr1
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Exposes a chrome.devtools object to extensions. This allows extensions to call chrome.devtools.connect() to open up a Port by which it can receive devtools messages to implement the proposed perf trace extensions API documented here: http://code.google.com/p/chromium/wiki/ExtensionsPerfTraceAPI Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24158

Patch Set 1 #

Patch Set 2 : Forces a regeneration of renderer resources #

Patch Set 3 : Use events instead of messages, behind a command line flag, renamed to 'timeline' #

Patch Set 4 : Fixes naming inconsistencies, STL logic fail in ExtensionMessageService::Observe, and some lint nits #

Total comments: 16

Patch Set 5 : Addresses review comments #

Patch Set 6 : Fix a typo in the name munging code in ExtensionDevToolsEventNames #

Total comments: 3

Patch Set 7 : Adds some browser tests #

Total comments: 4

Patch Set 8 : Fixes flakiness in tests by grabbing tab ID in C++ land and passing it down #

Unified diffs Side-by-side diffs Delta from patch set Stats (+817 lines, -7 lines) Patch
M chrome/browser/automation/automation_profile_impl.h View 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_devtools_bridge.h View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_devtools_bridge.cc View 1 2 3 4 5 6 7 1 chunk +104 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_devtools_browsertest.h View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_devtools_browsertest.cc View 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_devtools_browsertests.cc View 7 1 chunk +170 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_devtools_events.h View 3 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_devtools_events.cc View 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_devtools_manager.h View 3 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_devtools_manager.cc View 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_message_service.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_message_service.cc View 1 2 3 4 5 6 6 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/profile.h View 3 4 5 6 7 4 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 3 4 5 6 7 5 chunks +15 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 7 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 1 2 3 4 5 6 7 1 chunk +13 lines, -1 line 0 comments Download
A chrome/test/data/extensions/devtools/timeline_api/background.html View 7 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/devtools/timeline_api/manifest.json View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/devtools/timeline_api_two/background_two.html View 7 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/devtools/timeline_api_two/manifest.json View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
jamesr1
This patch implements a basic devtools<->extensions bridge. The issue description describes the motivation and background ...
11 years, 4 months ago (2009-08-05 01:51:41 UTC) #1
Matt Perry
Sorry I didn't get a chance to comment on the proposed API before now, but ...
11 years, 4 months ago (2009-08-05 18:39:00 UTC) #2
Kelly Norton
Matt, James is out of town for the rest of the week, so I'm going ...
11 years, 4 months ago (2009-08-06 05:13:07 UTC) #3
Matt Perry
On 2009/08/06 05:13:07, Kelly Norton wrote: > #1 - It exposed less actual API. This ...
11 years, 4 months ago (2009-08-07 01:35:11 UTC) #4
jamesr1
I've updated the patch to use events instead of message ports, put it behind a ...
11 years, 4 months ago (2009-08-14 03:59:48 UTC) #5
Matt Perry
I like this. It's very modular and not too tied into the extension system. http://codereview.chromium.org/159882/diff/4028/3032 ...
11 years, 4 months ago (2009-08-14 18:59:52 UTC) #6
Aaron Boodman
Hey James, I'll defer to Matt for the most part on the code review. One ...
11 years, 4 months ago (2009-08-14 20:48:40 UTC) #7
jamesr1
On Fri, Aug 14, 2009 at 4:48 PM, Aaron Boodman <aa@chromium.org> wrote: > Hey James, ...
11 years, 4 months ago (2009-08-14 21:02:08 UTC) #8
jamesr1
Updated to address review comments. I've taken out the reference to devtools.html in api_template.html, so ...
11 years, 4 months ago (2009-08-14 22:53:26 UTC) #9
Matt Perry
any ideas for how you could add unit tests for this? http://codereview.chromium.org/159882/diff/6009/5022 File chrome/browser/extensions/extension_devtools_bridge.cc (right): ...
11 years, 4 months ago (2009-08-14 22:59:55 UTC) #10
jamesr1
I've updated the patch with a few browser tests. Specifically they test that the following ...
11 years, 4 months ago (2009-08-18 23:33:18 UTC) #11
Matt Perry
Sorry for the delayed response. Good tests. I think this is ready for checkin. http://codereview.chromium.org/159882/diff/8001/8007 ...
11 years, 4 months ago (2009-08-19 21:22:14 UTC) #12
jamesr1
Thanks for the review! I will fix those last few nits, make sure I can ...
11 years, 4 months ago (2009-08-19 21:32:58 UTC) #13
jamesr1
This patch passes all try bots and should be good to land. The checks on ...
11 years, 4 months ago (2009-08-24 21:55:08 UTC) #14
Matt Perry
11 years, 4 months ago (2009-08-24 21:59:07 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld 408576698