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

Issue 340036: Initial pass of shared workers renderer-side code (Closed)

Created:
11 years, 1 month ago by Andrew T Wilson (Slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Initial pass of shared workers renderer-side code Added initial interface hooks betweek WebKit code and renderer-side worker code. The proper messages are generated to fire off a shared worker, but they are currently ignored by the browser process. BUG=26233 TEST=none (will enable layout tests when basic functionality available) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30599

Patch Set 1 #

Patch Set 2 : Merged with latest svn rev #

Patch Set 3 : Fixed style/compile errors #

Total comments: 3

Patch Set 4 : Changes reflecting review feedback #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+664 lines, -115 lines) Patch
M chrome/browser/in_process_webkit/browser_webkitclient_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/in_process_webkit/browser_webkitclient_impl.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/worker_host/worker_process_host.cc View 2 chunks +49 lines, -29 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 3 chunks +14 lines, -4 lines 0 comments Download
M chrome/common/worker_messages_internal.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webkitclient_impl.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webkitclient_impl.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/renderer/websharedworker_impl.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/renderer/websharedworker_impl.cc View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/renderer/websharedworkerrepository_impl.h View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/renderer/websharedworkerrepository_impl.cc View 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/renderer/webworker_base.h View 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/renderer/webworker_base.cc View 1 chunk +102 lines, -0 lines 0 comments Download
M chrome/renderer/webworker_proxy.h View 3 chunks +4 lines, -17 lines 0 comments Download
M chrome/renderer/webworker_proxy.cc View 3 chunks +12 lines, -57 lines 0 comments Download
M chrome/worker/worker_webkitclient_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/worker/worker_webkitclient_impl.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/api/public/WebKitClient.h View 1 2 chunks +3 lines, -0 lines 1 comment Download
A webkit/api/public/WebSharedWorker.h View 1 chunk +62 lines, -0 lines 3 comments Download
A webkit/api/public/WebSharedWorkerRepository.h View 1 chunk +60 lines, -0 lines 2 comments Download
M webkit/api/src/SharedWorkerRepository.cpp View 1 chunk +101 lines, -8 lines 5 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Andrew T Wilson (Slow)
This patch contains the WebKit API additions and most of the renderer-side code for creating ...
11 years, 1 month ago (2009-10-29 21:44:35 UTC) #1
jam
lgtm http://codereview.chromium.org/340036/diff/2001/2002 File chrome/browser/in_process_webkit/browser_webkitclient_impl.cc (right): http://codereview.chromium.org/340036/diff/2001/2002#newcode130 Line 130: return 0; nit: Chrome style is to ...
11 years, 1 month ago (2009-10-29 22:50:53 UTC) #2
darin (slow to review)
http://codereview.chromium.org/340036/diff/2026/6019 File webkit/api/public/WebKitClient.h (right): http://codereview.chromium.org/340036/diff/2026/6019#newcode228 Line 228: // Shared Workers ------------------------------------------------------ nit: should have two ...
11 years, 1 month ago (2009-10-30 18:56:00 UTC) #3
John Gregg
11 years, 1 month ago (2009-10-30 19:09:22 UTC) #4
Piling on with more style nits I happened to notice...

http://codereview.chromium.org/340036/diff/2026/6022
File webkit/api/src/SharedWorkerRepository.cpp (right):

http://codereview.chromium.org/340036/diff/2026/6022#newcode63
Line 63: : m_worker(worker),
nit: webkit style is to line up ',' with ':', and i don't think the indentation
is right...

http://codereview.chromium.org/340036/diff/2026/6022#newcode87
Line 87: static WebMessagePortChannel* getWebPort(PassOwnPtr<MessagePortChannel>
port) {
nit: webkit style is '{' on own line for functions

http://codereview.chromium.org/340036/diff/2026/6022#newcode147
Line 147: WebKit::WebSharedWorkerRepository* repo =
WebKit::webKitClient()->sharedWorkerRepository();
you have a using WebKit::WebSharedWorkerRepository above so you don't need
WebKit:: prefix here

http://codereview.chromium.org/340036/diff/2026/6022#newcode154
Line 154: WebKit::WebSharedWorkerRepository* repo =
WebKit::webKitClient()->sharedWorkerRepository();
ditto

Powered by Google App Engine
This is Rietveld 408576698