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

Issue 7885013: Move the ViewHostMsg_ClearPredictorCache out of content into chrome as this functionality is chro... (Closed)

Created:
9 years, 3 months ago by ananta
Modified:
9 years, 3 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dpranke+watch-content_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Move the V8 benchmarking_extension.cc/.h files out of webkit/extensions into chrome as the functionality exposed by this extension is chrome specific. The IPCs used by this extension have all been moved to chrome to a new header file benchmarking_messages.h in chrome\common. Added a new message filter object in chrome\browser which filters the benchmarking IPCs. Most of the changes in this CL are centered around ensuring that the benchmarking stuff gets initialized in the same order as before. Continuing changes to get rid of the pattern of IPC messags spanning across content and chrome. BUG=87335 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101214

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 4

Patch Set 9 : '' #

Total comments: 1

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -558 lines) Patch
M chrome/app/chrome_main.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/chrome_benchmarking_message_filter.h View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/chrome_benchmarking_message_filter.cc View 1 2 3 4 5 6 7 8 1 chunk +237 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 3 chunks +0 lines, -11 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/common/benchmarking_messages.h View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/renderer/benchmarking_extension.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
A + chrome/renderer/benchmarking_extension.cc View 1 2 4 chunks +16 lines, -6 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M content/app/content_main.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/browser_main.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/browser_render_process_host.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 6 chunks +0 lines, -162 lines 0 comments Download
M content/common/content_switches.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/common/content_switches.cc View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 1 chunk +0 lines, -35 lines 0 comments Download
M content/renderer/render_thread.h View 1 2 3 4 1 chunk +0 lines, -20 lines 0 comments Download
M content/renderer/render_thread.cc View 1 2 3 4 3 chunks +0 lines, -31 lines 0 comments Download
M content/renderer/renderer_glue.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
D webkit/extensions/v8/benchmarking_extension.h View 1 2 3 4 1 chunk +0 lines, -25 lines 0 comments Download
D webkit/extensions/v8/benchmarking_extension.cc View 1 2 3 4 1 chunk +0 lines, -164 lines 0 comments Download
M webkit/glue/webkit_glue.h View 1 2 3 4 1 chunk +0 lines, -21 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/support/webkit_support_glue.cc View 1 2 3 4 1 chunk +0 lines, -15 lines 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
ananta
9 years, 3 months ago (2011-09-13 20:59:51 UTC) #1
jam
it seems that benchmarking_extension.cc is really chrome specific. I don't quite understand why you say ...
9 years, 3 months ago (2011-09-13 21:40:36 UTC) #2
jam
I just looked at the ViewHostMsg_ClearCache, ViewHostMsg_ClearHostResolverCache messages, and the other IPCs sent by the ...
9 years, 3 months ago (2011-09-13 21:47:51 UTC) #3
ananta
On 2011/09/13 21:47:51, John Abd-El-Malek wrote: > I just looked at the ViewHostMsg_ClearCache, ViewHostMsg_ClearHostResolverCache > ...
9 years, 3 months ago (2011-09-14 03:10:27 UTC) #4
jam
the changes look like a great cleanup. i don't understand why the InitializeStatsTable code has ...
9 years, 3 months ago (2011-09-14 20:45:40 UTC) #5
ananta
Reverted the changes around InitializeStatsTable as per our discussion. Added a DCHECK which validates that ...
9 years, 3 months ago (2011-09-14 23:40:54 UTC) #6
jam
9 years, 3 months ago (2011-09-14 23:47:35 UTC) #7
lgtm

http://codereview.chromium.org/7885013/diff/5032/chrome/browser/chrome_conten...
File chrome/browser/chrome_content_browser_client.cc (right):

http://codereview.chromium.org/7885013/diff/5032/chrome/browser/chrome_conten...
chrome/browser/chrome_content_browser_client.cc:376: if
(command_line->HasSwitch(switches::kEnableBenchmarking)) {
nit: this file doesn't use brackets for one line statements

Powered by Google App Engine
This is Rietveld 408576698