OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // This class is shared by IDBFactory (async) and IDBFactorySync (sync). | 46 // This class is shared by IDBFactory (async) and IDBFactorySync (sync). |
47 // This is implemented by IDBFactoryBackendImpl and optionally others (in order
to proxy | 47 // This is implemented by IDBFactoryBackendImpl and optionally others (in order
to proxy |
48 // calls across process barriers). All calls to these classes should be non-bloc
king and | 48 // calls across process barriers). All calls to these classes should be non-bloc
king and |
49 // trigger work on a background thread if necessary. | 49 // trigger work on a background thread if necessary. |
50 class IDBFactoryBackendInterface : public HeapAllocatedFinalized<IDBFactoryBacke
ndInterface> { | 50 class IDBFactoryBackendInterface : public HeapAllocatedFinalized<IDBFactoryBacke
ndInterface> { |
51 DECLARE_GC_INFO | 51 DECLARE_GC_INFO |
52 public: | 52 public: |
53 static IDBFactoryBackendInterface* create(); | 53 static IDBFactoryBackendInterface* create(); |
54 virtual ~IDBFactoryBackendInterface() { } | 54 virtual ~IDBFactoryBackendInterface() { } |
55 | 55 |
56 virtual void getDatabaseNames(PassRefPtr<IDBCallbacks>, const String& databa
seIdentifier, ScriptExecutionContext*, const String& dataDir) = 0; | 56 virtual void getDatabaseNames(IDBCallbacks*, const String& databaseIdentifie
r, ScriptExecutionContext*, const String& dataDir) = 0; |
57 virtual void open(const String& name, int64_t version, int64_t transactionId
, PassRefPtr<IDBCallbacks>, PassRefPtr<IDBDatabaseCallbacks>, const String& data
baseIdentifier, ScriptExecutionContext*, const String& dataDir) = 0; | 57 virtual void open(const String& name, int64_t version, int64_t transactionId
, IDBCallbacks*, IDBDatabaseCallbacks*, const String& databaseIdentifier, Script
ExecutionContext*, const String& dataDir) = 0; |
58 virtual void deleteDatabase(const String& name, PassRefPtr<IDBCallbacks>, co
nst String& databaseIdentifier, ScriptExecutionContext*, const String& dataDir)
= 0; | 58 virtual void deleteDatabase(const String& name, IDBCallbacks*, const String&
databaseIdentifier, ScriptExecutionContext*, const String& dataDir) = 0; |
59 | 59 |
60 virtual void trace(Visitor*) = 0; | 60 virtual void trace(Visitor*) = 0; |
61 }; | 61 }; |
62 | 62 |
63 } // namespace WebCore | 63 } // namespace WebCore |
64 | 64 |
65 #endif // IDBFactoryBackendInterface_h | 65 #endif // IDBFactoryBackendInterface_h |
OLD | NEW |