Source/WebKit/chromium/ChangeLog

 12012-12-19 Mark Pilgrim <pilgrim@chromium.org>
 2
 3 [Chromium] add setIDBFactory method for embedders to call
 4 https://bugs.webkit.org/show_bug.cgi?id=105465
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 This is step 1 of getting rid of WebKitPlatform::idbFactory. This
 9 adds a setter for embedders to call upon initialization, which (if
 10 set) will be used instead of calling the idbFactory()
 11 method. Eventually the idbFactory() method will go away, and this
 12 setter will be the only way to initialize the Indexed Database API.
 13
 14 * public/WebIDBFactory.h:
 15 (WebKit):
 16 * src/IDBFactoryBackendProxy.cpp:
 17 (WebKit):
 18 (WebKit::setIDBFactory):
 19 (WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):
 20
1212012-12-19 Alexis Menard <alexis@webkit.org>
222
323 Implement CSS parsing for CSS transitions unprefixed.
138194

Source/WebKit/chromium/public/WebIDBFactory.h

@@public:
6363 virtual void deleteDatabase(const WebString& name, WebIDBCallbacks*, const WebSecurityOrigin&, WebFrame*, const WebString& dataDir) { WEBKIT_ASSERT_NOT_REACHED(); }
6464};
6565
 66// Initializes IndexedDB support.
 67WEBKIT_EXPORT void setIDBFactory(WebIDBFactory*);
 68
6669} // namespace WebKit
6770
6871#endif // WebIDBFactory_h
138193

Source/WebKit/chromium/src/IDBFactoryBackendProxy.cpp

@@using namespace WebCore;
6161
6262namespace WebKit {
6363
 64static WebIDBFactory* s_webIDBFactory = 0;
 65
 66void setIDBFactory(WebIDBFactory* factory)
 67{
 68 s_webIDBFactory = factory;
 69}
 70
6471PassRefPtr<IDBFactoryBackendInterface> IDBFactoryBackendProxy::create()
6572{
6673 return adoptRef(new IDBFactoryBackendProxy());
6774}
6875
6976IDBFactoryBackendProxy::IDBFactoryBackendProxy()
70  : m_webIDBFactory(webKitPlatformSupport()->idbFactory())
7177{
 78 if (s_webIDBFactory)
 79 m_webIDBFactory = s_webIDBFactory;
 80 else
 81 m_webIDBFactory = webKitPlatformSupport()->idbFactory();
7282}
7383
7484IDBFactoryBackendProxy::~IDBFactoryBackendProxy()
138193