| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 class WebIDBFactory; | 43 class WebIDBFactory; |
| 44 class WebSecurityOrigin; | 44 class WebSecurityOrigin; |
| 45 | 45 |
| 46 class IDBFactoryBackendProxy : public WebCore::IDBFactoryBackendInterface { | 46 class IDBFactoryBackendProxy : public WebCore::IDBFactoryBackendInterface { |
| 47 public: | 47 public: |
| 48 static WebCore::IDBFactoryBackendInterface* create(); | 48 static WebCore::IDBFactoryBackendInterface* create(); |
| 49 virtual ~IDBFactoryBackendProxy(); | 49 virtual ~IDBFactoryBackendProxy(); |
| 50 | 50 |
| 51 virtual void getDatabaseNames(PassRefPtr<WebCore::IDBCallbacks>, const Strin
g& databaseIdentifier, WebCore::ScriptExecutionContext*, const String& dataDir); | 51 virtual void getDatabaseNames(PassRefPtr<WebCore::IDBCallbacks>, const Strin
g& databaseIdentifier, WebCore::ScriptExecutionContext*, const String& dataDir); |
| 52 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); | 52 virtual void open(const String& name, int64_t version, int64_t transactionId
, PassRefPtr<WebCore::IDBCallbacks>, WebCore::IDBDatabaseCallbacks*, const Strin
g& databaseIdentifier, WebCore::ScriptExecutionContext*, const String& dataDir); |
| 53 virtual void deleteDatabase(const String& name, PassRefPtr<WebCore::IDBCallb
acks>, const String& databaseIdentifier, WebCore::ScriptExecutionContext*, const
String& dataDir); | 53 virtual void deleteDatabase(const String& name, PassRefPtr<WebCore::IDBCallb
acks>, const String& databaseIdentifier, WebCore::ScriptExecutionContext*, const
String& dataDir); |
| 54 virtual void trace(WebCore::Visitor*) { } | 54 virtual void trace(WebCore::Visitor*) { } |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 IDBFactoryBackendProxy(); | 57 IDBFactoryBackendProxy(); |
| 58 bool allowIndexedDB(WebCore::ScriptExecutionContext*, const String& name, co
nst WebSecurityOrigin&, PassRefPtr<WebCore::IDBCallbacks>); | 58 bool allowIndexedDB(WebCore::ScriptExecutionContext*, const String& name, co
nst WebSecurityOrigin&, PassRefPtr<WebCore::IDBCallbacks>); |
| 59 | 59 |
| 60 // We don't own this pointer (unlike all the other proxy classes which do). | 60 // We don't own this pointer (unlike all the other proxy classes which do). |
| 61 WebIDBFactory* m_webIDBFactory; | 61 WebIDBFactory* m_webIDBFactory; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace WebKit | 64 } // namespace WebKit |
| 65 | 65 |
| 66 #endif // IDBFactoryBackendProxy_h | 66 #endif // IDBFactoryBackendProxy_h |
| OLD | NEW |