Changeset 137490 in webkit


Ignore:
Timestamp:
Dec 12, 2012 11:32:12 AM (11 years ago)
Author:
pilgrim@chromium.org
Message:

[Chromium] Remove all references to sharedWorkerRepository()
https://bugs.webkit.org/show_bug.cgi?id=104704

Reviewed by James Robinson.

Now that Chromium calls setSharedWorkerRepository upon
initializing WebKit (
https://chromiumcodereview.appspot.com/10990121/ ) and no longer
tries to override sharedWorkerRepository, it is safe to remove
all references to this function.

  • public/platform/WebKitPlatformSupport.h:

(WebKit):
(WebKit::WebKitPlatformSupport::idbFactory):

  • src/SharedWorkerRepository.cpp:

(WebKit::sharedWorkerRepository):
(WebCore::SharedWorkerRepository::isAvailable):

Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r137441 r137490  
     12012-12-12  Mark Pilgrim  <pilgrim@chromium.org>
     2
     3        [Chromium] Remove all references to sharedWorkerRepository()
     4        https://bugs.webkit.org/show_bug.cgi?id=104704
     5
     6        Reviewed by James Robinson.
     7
     8        Now that Chromium calls setSharedWorkerRepository upon
     9        initializing WebKit (
     10        https://chromiumcodereview.appspot.com/10990121/ ) and no longer
     11        tries to override sharedWorkerRepository, it is safe to remove
     12        all references to this function.
     13
     14        * public/platform/WebKitPlatformSupport.h:
     15        (WebKit):
     16        (WebKit::WebKitPlatformSupport::idbFactory):
     17        * src/SharedWorkerRepository.cpp:
     18        (WebKit::sharedWorkerRepository):
     19        (WebCore::SharedWorkerRepository::isAvailable):
     20
    1212012-12-12  Tommy Widenflycht  <tommyw@google.com>
    222
  • trunk/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h

    r137327 r137490  
    3737
    3838class WebIDBFactory; // FIXME: Does this belong in platform?
    39 class WebSharedWorkerRepository; // FIXME: Does this belong in platform?
    4039
    4140// FIXME: Eventually all these API will need to move to WebKit::Platform.
     
    4645    virtual WebIDBFactory* idbFactory() { return 0; }
    4746
    48 
    49     // Shared Workers ------------------------------------------------------
    50 
    51     virtual WebSharedWorkerRepository* sharedWorkerRepository() { return 0; }
    52 
    5347protected:
    5448    ~WebKitPlatformSupport() { }
  • trunk/Source/WebKit/chromium/src/SharedWorkerRepository.cpp

    r128087 r137490  
    7070static WebSharedWorkerRepository* sharedWorkerRepository()
    7171{
    72     WebSharedWorkerRepository* repository;
    73 
    74     repository = s_sharedWorkerRepository;
    75     if (!repository) {
    76         repository = webKitPlatformSupport()->sharedWorkerRepository();
    77         setSharedWorkerRepository(repository);
    78     }
    79 
    80     return repository;
     72    // Will only be non-zero if the embedder has set the shared worker repository upon initialization. Nothing in WebKit sets this.
     73    return s_sharedWorkerRepository;
    8174}
    8275
     
    219212bool SharedWorkerRepository::isAvailable()
    220213{
    221     // Allow the WebKitPlatformSupport to determine if SharedWorkers
    222     // are available.
    223214    return WebKit::sharedWorkerRepository();
    224215}
Note: See TracChangeset for help on using the changeset viewer.