Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef IDBFactoryBackendProxy_h | 29 #ifndef IDBFactoryBackendProxy_h |
| 30 #define IDBFactoryBackendProxy_h | 30 #define IDBFactoryBackendProxy_h |
| 31 | 31 |
| 32 #include "IDBCallbacks.h" | 32 #include "IDBCallbacks.h" |
| 33 #include "IDBFactoryBackendInterfaceChromium.h" | 33 #include "IDBFactoryBackendInterfaceChromium.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 class ScriptExecutionContext; | 36 class ScriptExecutionContext; |
| 37 class SecurityOrigin; | |
|
jsbell
2013/04/24 21:25:21
This seems extraneous.
| |
| 37 } | 38 } |
| 38 | 39 |
| 39 namespace WebKit { | 40 namespace WebKit { |
| 40 | 41 |
| 41 class WebIDBFactory; | 42 class WebIDBFactory; |
| 42 class WebSecurityOrigin; | 43 class WebSecurityOrigin; |
| 43 | 44 |
| 44 class IDBFactoryBackendProxy : public WebCore::IDBFactoryBackendInterface { | 45 class IDBFactoryBackendProxy : public WebCore::IDBFactoryBackendInterface { |
| 45 public: | 46 public: |
| 46 static PassRefPtr<WebCore::IDBFactoryBackendInterface> create(); | 47 static PassRefPtr<WebCore::IDBFactoryBackendInterface> create(); |
| 47 virtual ~IDBFactoryBackendProxy(); | 48 virtual ~IDBFactoryBackendProxy(); |
| 48 | 49 |
| 49 virtual void getDatabaseNames(PassRefPtr<WebCore::IDBCallbacks>, PassRefPtr< WebCore::SecurityOrigin>, WebCore::ScriptExecutionContext*, const String& dataDi r); | 50 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); | 51 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); | 52 virtual void deleteDatabase(const String& name, PassRefPtr<WebCore::IDBCallb acks>, const String& databaseIdentifier, WebCore::ScriptExecutionContext*, const String& dataDir); |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 IDBFactoryBackendProxy(); | 55 IDBFactoryBackendProxy(); |
| 55 bool allowIndexedDB(WebCore::ScriptExecutionContext*, const String& name, co nst WebSecurityOrigin&, PassRefPtr<WebCore::IDBCallbacks>); | 56 bool allowIndexedDB(WebCore::ScriptExecutionContext*, const String& name, co nst WebSecurityOrigin&, PassRefPtr<WebCore::IDBCallbacks>); |
| 56 | 57 |
| 57 // We don't own this pointer (unlike all the other proxy classes which do). | 58 // We don't own this pointer (unlike all the other proxy classes which do). |
| 58 WebIDBFactory* m_webIDBFactory; | 59 WebIDBFactory* m_webIDBFactory; |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace WebKit | 62 } // namespace WebKit |
| 62 | 63 |
| 63 #endif // IDBFactoryBackendProxy_h | 64 #endif // IDBFactoryBackendProxy_h |
| OLD | NEW |