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

Issue 3597016: Expands the chrome.experimental.processes extension API.... (Closed)

Created:
10 years, 2 months ago by Charlie Reis
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Expands the chrome.experimental.processes extension API. Adds an onUpdated event that reports process metrics from the TaskManager, and modifies the TaskManager to support multiple independent observers. BUG=32302 TEST=ExtensionApiTest.Processes browsertest TEST=process_monitor sample extension Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=62458

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 21

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+959 lines, -194 lines) Patch
M chrome/browser/extensions/extension_message_service.cc View 2 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_processes_api.h View 1 2 1 chunk +59 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_processes_api.cc View 1 2 3 2 chunks +105 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_processes_api_constants.h View 1 2 3 1 chunk +14 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_processes_api_constants.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_processes_apitest.cc View 1 chunk +31 lines, -1 line 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/gtk/task_manager_gtk.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager.h View 2 3 5 chunks +31 lines, -21 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 8 chunks +34 lines, -6 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 2 chunks +42 lines, -7 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/processes/process_monitor/icon.png View Binary file 0 comments Download
A chrome/common/extensions/docs/examples/api/processes/process_monitor/manifest.json View 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.html View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/experimental.processes.html View 9 chunks +371 lines, -26 lines 0 comments Download
M chrome/common/extensions/docs/samples.html View 3 chunks +41 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 7 chunks +28 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/permissions/enabled/background.html View 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/test/data/extensions/api_test/processes/a.html View 1 chunk +0 lines, -5 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/a.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/b.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/manifest.json View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/test.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/test.js View 3 chunks +73 lines, -13 lines 0 comments Download
D chrome/test/data/extensions/api_test/processes/b.html View 1 chunk +0 lines, -5 lines 0 comments Download
D chrome/test/data/extensions/api_test/processes/manifest.json View 1 chunk +0 lines, -7 lines 0 comments Download
A chrome/test/data/extensions/api_test/processes/onupdated/background.html View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/processes/onupdated/manifest.json View 1 chunk +7 lines, -0 lines 0 comments Download
D chrome/test/data/extensions/api_test/processes/test.html View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/processes/test.js View 2 3 1 chunk +0 lines, -91 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Charlie Reis
Here's a first cut at expanding the API. There's a few things I still need ...
10 years, 2 months ago (2010-10-07 21:05:09 UTC) #1
rafaelw
FYI, I'm on vacation tomorrow. I can get to this (and the related thread) on ...
10 years, 2 months ago (2010-10-08 01:24:31 UTC) #2
Charlie Reis
On 2010/10/08 01:24:31, rafaelw wrote: > FYI, I'm on vacation tomorrow. I can get to ...
10 years, 2 months ago (2010-10-08 01:31:41 UTC) #3
Charlie Reis
Ok, this is ready for review now. It gets the TaskManager to start and stop ...
10 years, 2 months ago (2010-10-12 17:30:06 UTC) #4
rafaelw
mostly looks good. note that I didn't review task_manager* code (I'm assuming that's why Jay ...
10 years, 2 months ago (2010-10-12 21:44:05 UTC) #5
Jay Civelli
LGTM for the task_manager files.
10 years, 2 months ago (2010-10-12 22:41:01 UTC) #6
Matt Perry
http://codereview.chromium.org/3597016/diff/23001/24001 File chrome/browser/extensions/extension_message_service.cc (right): http://codereview.chromium.org/3597016/diff/23001/24001#newcode196 chrome/browser/extensions/extension_message_service.cc:196: // TODO(creis): Shouldn't we remove the listeners even if ...
10 years, 2 months ago (2010-10-12 22:49:58 UTC) #7
Charlie Reis
New CL uploaded. The profile issue is the main remaining question. (I also added a ...
10 years, 2 months ago (2010-10-13 01:16:54 UTC) #8
Matt Perry
http://codereview.chromium.org/3597016/diff/23001/24001 File chrome/browser/extensions/extension_message_service.cc (right): http://codereview.chromium.org/3597016/diff/23001/24001#newcode196 chrome/browser/extensions/extension_message_service.cc:196: // TODO(creis): Shouldn't we remove the listeners even if ...
10 years, 2 months ago (2010-10-13 01:50:26 UTC) #9
Charlie Reis
Now that we're getting close, I've added in the updated extension docs (after running docs/build/build.py). ...
10 years, 2 months ago (2010-10-13 18:01:39 UTC) #10
rafaelw
lgtm
10 years, 2 months ago (2010-10-13 18:09:01 UTC) #11
Matt Perry
10 years, 2 months ago (2010-10-13 18:21:30 UTC) #12
LGTM for my parts.

Powered by Google App Engine
This is Rietveld 408576698