Bug 94481 - [Chromium] Remove WebKitPlatformSupport::sharedWorkerRepository
Summary: [Chromium] Remove WebKitPlatformSupport::sharedWorkerRepository
Status: RESOLVED DUPLICATE of bug 95861
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Pilgrim (Google)
URL:
Keywords:
Depends on:
Blocks: 82948
  Show dependency treegraph
 
Reported: 2012-08-20 07:43 PDT by Mark Pilgrim (Google)
Modified: 2012-09-05 09:26 PDT (History)
9 users (show)

See Also:


Attachments
WIP Incomplete Patch (9.14 KB, patch)
2012-08-20 07:44 PDT, Mark Pilgrim (Google)
peter+ews: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Pilgrim (Google) 2012-08-20 07:43:55 PDT
[Chromium] Remove WebKitPlatformSupport::sharedWorkerRepository
Comment 1 Mark Pilgrim (Google) 2012-08-20 07:44:35 PDT
Created attachment 159425 [details]
WIP Incomplete Patch
Comment 2 WebKit Review Bot 2012-08-20 07:46:50 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 Mark Pilgrim (Google) 2012-08-20 07:47:27 PDT
Comment on attachment 159425 [details]
WIP Incomplete Patch

This patch is incomplete. I need to find where Chromium implements WebKitPlatformSupport::sharedWorkerRepository() so I can remove that function, then find where Chromium calls WebKit::initialize() so I can add the call to SharedWorkerRepository::setSharedWorkerRepository.

Other comments welcome too.
Comment 4 Peter Beverloo (cr-android ews) 2012-08-20 07:51:00 PDT
Comment on attachment 159425 [details]
WIP Incomplete Patch

Attachment 159425 [details] did not pass cr-android-ews (chromium-android):
Output: http://queues.webkit.org/results/13539602
Comment 5 WebKit Review Bot 2012-08-20 07:51:16 PDT
Comment on attachment 159425 [details]
WIP Incomplete Patch

Attachment 159425 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/13543350
Comment 6 Adam Barth 2012-08-20 11:52:48 PDT
Comment on attachment 159425 [details]
WIP Incomplete Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=159425&action=review

> Source/WebCore/workers/SharedWorkerRepository.h:67
> +        // sets global shared worker repository
> +        static void setSharedWorkerRepository(WebKit::WebSharedWorkerRepository*);

We shouldn't have code in that references Chromium API types outside of Chromium-specific regions of the code.  Do we need a SharedWorkerRepositoryChromium.h to house this static method?

I didn't find anyone who calls this function, so I'm not sure what to recommend.  Do you plan to keep the implementation in Source/WebKit/chromium/src/SharedWorkerRepository.cpp ?  If so, it might make sense to put the header for this function in Source/WebKit/chromium/src.
Comment 7 Adam Barth 2012-08-20 11:54:11 PDT
Comment on attachment 159425 [details]
WIP Incomplete Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=159425&action=review

> Source/WebKit/chromium/src/SharedWorkerRepository.cpp:197
>  bool SharedWorkerRepository::isAvailable()

Note: In the long term, we don't want to have "namespace WebCore" code in WebKit because it will prevent us from splitting WebCore.dll from WebKit.dll.
Comment 8 Adam Barth 2012-08-20 11:56:10 PDT
> then find where Chromium calls WebKit::initialize()

WebKit::initialize is in http://trac.webkit.org/browser/trunk/Source/WebKit/chromium/src/WebKit.cpp#L102
Comment 9 Mark Pilgrim (Google) 2012-09-05 09:26:25 PDT

*** This bug has been marked as a duplicate of bug 95861 ***