| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 namespace WebKit { | 39 namespace WebKit { |
| 40 | 40 |
| 41 class WebIDBFactory; | 41 class WebIDBFactory; |
| 42 class WebSecurityOrigin; | 42 class WebSecurityOrigin; |
| 43 | 43 |
| 44 class IDBFactoryBackendProxy : public WebCore::IDBFactoryBackendInterface { | 44 class IDBFactoryBackendProxy : public WebCore::IDBFactoryBackendInterface { |
| 45 public: | 45 public: |
| 46 static PassRefPtr<WebCore::IDBFactoryBackendInterface> create(); | 46 static PassRefPtr<WebCore::IDBFactoryBackendInterface> create(); |
| 47 virtual ~IDBFactoryBackendProxy(); | 47 virtual ~IDBFactoryBackendProxy(); |
| 48 | 48 |
| 49 virtual void getDatabaseNames(PassRefPtr<WebCore::IDBCallbacks>, PassRefPtr<
WebCore::SecurityOrigin>, WebCore::ScriptExecutionContext*, const String& dataDi
r); | 49 virtual void getDatabaseNames(PassRefPtr<WebCore::IDBCallbacks>, const Strin
g& databaseIdentifier, WebCore::ScriptExecutionContext*, const String& dataDir); |
| 50 virtual void open(const String& name, int64_t version, int64_t transactionId
, PassRefPtr<WebCore::IDBCallbacks>, PassRefPtr<WebCore::IDBDatabaseCallbacks>,
PassRefPtr<WebCore::SecurityOrigin>, WebCore::ScriptExecutionContext*, const Str
ing& dataDir); | 50 virtual void open(const String& name, int64_t version, int64_t transactionId
, PassRefPtr<WebCore::IDBCallbacks>, PassRefPtr<WebCore::IDBDatabaseCallbacks>,
const String& databaseIdentifier, WebCore::ScriptExecutionContext*, const String
& dataDir); |
| 51 virtual void deleteDatabase(const String& name, PassRefPtr<WebCore::IDBCallb
acks>, PassRefPtr<WebCore::SecurityOrigin>, WebCore::ScriptExecutionContext*, co
nst String& dataDir); | 51 virtual void deleteDatabase(const String& name, PassRefPtr<WebCore::IDBCallb
acks>, const String& databaseIdentifier, WebCore::ScriptExecutionContext*, const
String& dataDir); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 IDBFactoryBackendProxy(); | 54 IDBFactoryBackendProxy(); |
| 55 bool allowIndexedDB(WebCore::ScriptExecutionContext*, const String& name, co
nst WebSecurityOrigin&, PassRefPtr<WebCore::IDBCallbacks>); | 55 bool allowIndexedDB(WebCore::ScriptExecutionContext*, const String& name, co
nst WebSecurityOrigin&, PassRefPtr<WebCore::IDBCallbacks>); |
| 56 | 56 |
| 57 // We don't own this pointer (unlike all the other proxy classes which do). | 57 // We don't own this pointer (unlike all the other proxy classes which do). |
| 58 WebIDBFactory* m_webIDBFactory; | 58 WebIDBFactory* m_webIDBFactory; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace WebKit | 61 } // namespace WebKit |
| 62 | 62 |
| 63 #endif // IDBFactoryBackendProxy_h | 63 #endif // IDBFactoryBackendProxy_h |
| OLD | NEW |