Changeset 150062 in webkit


Ignore:
Timestamp:
May 14, 2013 3:12:35 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Implement platform strategies
https://bugs.webkit.org/show_bug.cgi?id=112162

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2013-05-14
Reviewed by Rob Buis.

Source/WebCore:

This is just a refactoring, covered by existing tests.

  • CMakeLists.txt: Move PlatformStrategies.cpp from platform

specific makefiles to the global one now that all platforms using
cmake implement platform strategies.

  • PlatformBlackBerry.cmake:
  • PlatformEfl.cmake:
  • PlatformWinCE.cmake:
  • loader/CookieJar.cpp: Remove the preprocessor error that is not

needed anymore.

  • loader/blackberry/CookieJarBlackBerry.cpp: Removed.
  • platform/network/blackberry/CookieJarBlackBerry.cpp: Added.

(WebCore):
(WebCore::setCookiesFromDOM):
(WebCore::cookiesForDOM):
(WebCore::cookieRequestHeaderFieldValue):
(WebCore::cookiesEnabled):
(WebCore::getRawCookies):
(WebCore::deleteCookie):
(WebCore::getHostnamesWithCookies):
(WebCore::deleteCookiesForHostname):
(WebCore::deleteAllCookies):

  • plugins/blackberry/PluginDataBlackBerry.cpp: Removed.

Source/WebKit:

  • PlatformBlackBerry.cmake: Add new files to compilation.

Source/WebKit/blackberry:

  • Api/BlackBerryGlobal.cpp:

(BlackBerry::WebKit::globalInitialize): Initialize platform
strategies.

  • WebCoreSupport/PlatformStrategiesBlackBerry.cpp: Added.

(PlatformStrategiesBlackBerry::initialize):
(PlatformStrategiesBlackBerry::PlatformStrategiesBlackBerry):
(PlatformStrategiesBlackBerry::createCookiesStrategy):
(PlatformStrategiesBlackBerry::createDatabaseStrategy):
(PlatformStrategiesBlackBerry::createLoaderStrategy):
(PlatformStrategiesBlackBerry::createPasteboardStrategy):
(PlatformStrategiesBlackBerry::createPluginStrategy):
(PlatformStrategiesBlackBerry::createSharedWorkerStrategy):
(PlatformStrategiesBlackBerry::createStorageStrategy):
(PlatformStrategiesBlackBerry::createVisitedLinkStrategy):
(PlatformStrategiesBlackBerry::cookiesForDOM):
(PlatformStrategiesBlackBerry::setCookiesFromDOM):
(PlatformStrategiesBlackBerry::cookiesEnabled):
(PlatformStrategiesBlackBerry::cookieRequestHeaderFieldValue):
(PlatformStrategiesBlackBerry::getRawCookies):
(PlatformStrategiesBlackBerry::deleteCookie):
(PlatformStrategiesBlackBerry::refreshPlugins):
(PlatformStrategiesBlackBerry::getPluginInfo):
(PlatformStrategiesBlackBerry::isLinkVisited):
(PlatformStrategiesBlackBerry::addVisitedLink):

  • WebCoreSupport/PlatformStrategiesBlackBerry.h: Added.

(PlatformStrategiesBlackBerry):

Source/WTF:

  • wtf/Platform.h: Add BlackBerry platform to the list of platforms

using platform strategies.

Location:
trunk/Source
Files:
3 added
2 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r150042 r150062  
     12013-05-14  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [BlackBerry] Implement platform strategies
     4        https://bugs.webkit.org/show_bug.cgi?id=112162
     5
     6        Reviewed by Rob Buis.
     7
     8        * wtf/Platform.h: Add BlackBerry platform to the list of platforms
     9        using platform strategies.
     10
    1112013-05-13  Benjamin Poulain  <benjamin@webkit.org>
    212
  • trunk/Source/WTF/wtf/Platform.h

    r149966 r150062  
    887887
    888888/* FIXME: Eventually we should enable this for all platforms and get rid of the define. */
    889 #if PLATFORM(IOS) || PLATFORM(MAC) || PLATFORM(WIN) || PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(EFL)
     889#if PLATFORM(IOS) || PLATFORM(MAC) || PLATFORM(WIN) || PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(BLACKBERRY)
    890890#define WTF_USE_PLATFORM_STRATEGIES 1
    891891#endif
  • trunk/Source/WebCore/CMakeLists.txt

    r150045 r150062  
    18331833    platform/PlatformEvent.cpp
    18341834    platform/PlatformInstrumentation.cpp
     1835    platform/PlatformStrategies.cpp
    18351836    platform/RunLoop.cpp
    18361837    platform/RuntimeApplicationChecks.cpp
  • trunk/Source/WebCore/ChangeLog

    r150057 r150062  
     12013-05-14  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [BlackBerry] Implement platform strategies
     4        https://bugs.webkit.org/show_bug.cgi?id=112162
     5
     6        Reviewed by Rob Buis.
     7
     8        This is just a refactoring, covered by existing tests.
     9
     10        * CMakeLists.txt: Move PlatformStrategies.cpp from platform
     11        specific makefiles to the global one now that all platforms using
     12        cmake implement platform strategies.
     13        * PlatformBlackBerry.cmake:
     14        * PlatformEfl.cmake:
     15        * PlatformWinCE.cmake:
     16        * loader/CookieJar.cpp: Remove the preprocessor error that is not
     17        needed anymore.
     18        * loader/blackberry/CookieJarBlackBerry.cpp: Removed.
     19        * platform/network/blackberry/CookieJarBlackBerry.cpp: Added.
     20        (WebCore):
     21        (WebCore::setCookiesFromDOM):
     22        (WebCore::cookiesForDOM):
     23        (WebCore::cookieRequestHeaderFieldValue):
     24        (WebCore::cookiesEnabled):
     25        (WebCore::getRawCookies):
     26        (WebCore::deleteCookie):
     27        (WebCore::getHostnamesWithCookies):
     28        (WebCore::deleteCookiesForHostname):
     29        (WebCore::deleteAllCookies):
     30        * plugins/blackberry/PluginDataBlackBerry.cpp: Removed.
     31
    1322013-05-14  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
    233
  • trunk/Source/WebCore/PlatformBlackBerry.cmake

    r149899 r150062  
    4545    platform/network/ProxyServer.cpp
    4646    platform/network/blackberry/AutofillBackingStore.cpp
     47    platform/network/blackberry/CookieJarBlackBerry.cpp
    4748    platform/network/blackberry/DNSBlackBerry.cpp
    4849    platform/network/blackberry/DeferredData.cpp
     
    9596    editing/blackberry/SmartReplaceBlackBerry.cpp
    9697    html/shadow/MediaControlsBlackBerry.cpp
    97     loader/blackberry/CookieJarBlackBerry.cpp
    9898    page/blackberry/AccessibilityObjectBlackBerry.cpp
    9999    page/blackberry/DragControllerBlackBerry.cpp
     
    205205    list(APPEND WebCore_SOURCES
    206206        plugins/blackberry/NPCallbacksBlackBerry.cpp
    207         plugins/blackberry/PluginDataBlackBerry.cpp
    208207        plugins/blackberry/PluginPackageBlackBerry.cpp
    209208        plugins/blackberry/PluginViewBlackBerry.cpp
  • trunk/Source/WebCore/PlatformEfl.cmake

    r149899 r150062  
    159159    platform/network/soup/SoupURIUtils.cpp
    160160
    161     platform/PlatformStrategies.cpp
    162 
    163161    platform/posix/FileSystemPOSIX.cpp
    164162    platform/posix/SharedBufferPOSIX.cpp
  • trunk/Source/WebCore/PlatformWinCE.cmake

    r149899 r150062  
    3232    platform/Cursor.cpp
    3333    platform/LocalizedStrings.cpp
    34     platform/PlatformStrategies.cpp
    3534    platform/ScrollAnimatorNone.cpp
    3635
  • trunk/Source/WebCore/loader/CookieJar.cpp

    r144568 r150062  
    3636#include "CookiesStrategy.h"
    3737#include "PlatformStrategies.h"
    38 #endif
    39 
    40 #if PLATFORM(BLACKBERRY)
    41 #error Blackberry currently uses a fork of this file because of layering violations
    4238#endif
    4339
  • trunk/Source/WebKit/ChangeLog

    r149621 r150062  
     12013-05-14  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [BlackBerry] Implement platform strategies
     4        https://bugs.webkit.org/show_bug.cgi?id=112162
     5
     6        Reviewed by Rob Buis.
     7
     8        * PlatformBlackBerry.cmake: Add new files to compilation.
     9
    1102013-05-06  Roger Fong  <roger_fong@apple.com>
    211
  • trunk/Source/WebKit/PlatformBlackBerry.cmake

    r147960 r150062  
    103103    blackberry/WebCoreSupport/NotificationClientBlackBerry.cpp
    104104    blackberry/WebCoreSupport/PagePopupBlackBerry.cpp
     105    blackberry/WebCoreSupport/PlatformStrategiesBlackBerry.cpp
    105106    blackberry/WebCoreSupport/NavigatorContentUtilsClientBlackBerry.cpp
    106107    blackberry/WebCoreSupport/SelectPopupClient.cpp
  • trunk/Source/WebKit/blackberry/Api/BlackBerryGlobal.cpp

    r148696 r150062  
    3434#include "PageCache.h"
    3535#include "PageGroup.h"
     36#include "PlatformStrategiesBlackBerry.h"
    3637#include "Settings.h"
    3738#include "TextureCacheCompositingThread.h"
     
    7475    // we're grabbing callOnMainThread without using the rest of the threading support.
    7576    WTF::initializeMainThread();
     77
     78    // Initialize our platform strategies.
     79    PlatformStrategiesBlackBerry::initialize();
    7680
    7781    // Set the minimal timer interval to 4 milliseconds.
  • trunk/Source/WebKit/blackberry/ChangeLog

    r150060 r150062  
     12013-05-14  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [BlackBerry] Implement platform strategies
     4        https://bugs.webkit.org/show_bug.cgi?id=112162
     5
     6        Reviewed by Rob Buis.
     7
     8        * Api/BlackBerryGlobal.cpp:
     9        (BlackBerry::WebKit::globalInitialize): Initialize platform
     10        strategies.
     11        * WebCoreSupport/PlatformStrategiesBlackBerry.cpp: Added.
     12        (PlatformStrategiesBlackBerry::initialize):
     13        (PlatformStrategiesBlackBerry::PlatformStrategiesBlackBerry):
     14        (PlatformStrategiesBlackBerry::createCookiesStrategy):
     15        (PlatformStrategiesBlackBerry::createDatabaseStrategy):
     16        (PlatformStrategiesBlackBerry::createLoaderStrategy):
     17        (PlatformStrategiesBlackBerry::createPasteboardStrategy):
     18        (PlatformStrategiesBlackBerry::createPluginStrategy):
     19        (PlatformStrategiesBlackBerry::createSharedWorkerStrategy):
     20        (PlatformStrategiesBlackBerry::createStorageStrategy):
     21        (PlatformStrategiesBlackBerry::createVisitedLinkStrategy):
     22        (PlatformStrategiesBlackBerry::cookiesForDOM):
     23        (PlatformStrategiesBlackBerry::setCookiesFromDOM):
     24        (PlatformStrategiesBlackBerry::cookiesEnabled):
     25        (PlatformStrategiesBlackBerry::cookieRequestHeaderFieldValue):
     26        (PlatformStrategiesBlackBerry::getRawCookies):
     27        (PlatformStrategiesBlackBerry::deleteCookie):
     28        (PlatformStrategiesBlackBerry::refreshPlugins):
     29        (PlatformStrategiesBlackBerry::getPluginInfo):
     30        (PlatformStrategiesBlackBerry::isLinkVisited):
     31        (PlatformStrategiesBlackBerry::addVisitedLink):
     32        * WebCoreSupport/PlatformStrategiesBlackBerry.h: Added.
     33        (PlatformStrategiesBlackBerry):
     34
    1352013-05-14  Carlos Garcia Campos  <cgarcia@igalia.com>
    236
Note: See TracChangeset for help on using the changeset viewer.