| 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 | 46 |
| 47 class IDBFactory : public RefCountedWillBeGarbageCollectedFinalized<IDBFactory>,
public ScriptWrappable { | 47 class IDBFactory : public RefCountedWillBeGarbageCollectedFinalized<IDBFactory>,
public ScriptWrappable { |
| 48 public: | 48 public: |
| 49 static PassRefPtrWillBeRawPtr<IDBFactory> create(PassRefPtrWillBeRawPtr<Inde
xedDBClient> client) | 49 static PassRefPtrWillBeRawPtr<IDBFactory> create(PassRefPtrWillBeRawPtr<Inde
xedDBClient> client) |
| 50 { | 50 { |
| 51 return adoptRefWillBeNoop(new IDBFactory(client)); | 51 return adoptRefWillBeNoop(new IDBFactory(client)); |
| 52 } | 52 } |
| 53 ~IDBFactory(); | 53 ~IDBFactory(); |
| 54 void trace(Visitor*); | 54 void trace(Visitor*); |
| 55 | 55 |
| 56 PassRefPtrWillBeRawPtr<IDBRequest> getDatabaseNames(ExecutionContext*, Excep
tionState&); | 56 PassRefPtrWillBeRawPtr<IDBRequest> getDatabaseNames(ScriptState*, ExceptionS
tate&); |
| 57 | 57 |
| 58 PassRefPtrWillBeRawPtr<IDBOpenDBRequest> open(ExecutionContext*, const Strin
g& name, ExceptionState&); | 58 PassRefPtrWillBeRawPtr<IDBOpenDBRequest> open(ScriptState*, const String& na
me, ExceptionState&); |
| 59 PassRefPtrWillBeRawPtr<IDBOpenDBRequest> open(ExecutionContext*, const Strin
g& name, unsigned long long version, ExceptionState&); | 59 PassRefPtrWillBeRawPtr<IDBOpenDBRequest> open(ScriptState*, const String& na
me, unsigned long long version, ExceptionState&); |
| 60 PassRefPtrWillBeRawPtr<IDBOpenDBRequest> deleteDatabase(ExecutionContext*, c
onst String& name, ExceptionState&); | 60 PassRefPtrWillBeRawPtr<IDBOpenDBRequest> deleteDatabase(ScriptState*, const
String& name, ExceptionState&); |
| 61 | 61 |
| 62 short cmp(ExecutionContext*, const ScriptValue& first, const ScriptValue& se
cond, ExceptionState&); | 62 short cmp(ScriptState*, const ScriptValue& first, const ScriptValue& second,
ExceptionState&); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 explicit IDBFactory(PassRefPtrWillBeRawPtr<IndexedDBClient>); | 65 explicit IDBFactory(PassRefPtrWillBeRawPtr<IndexedDBClient>); |
| 66 | 66 |
| 67 PassRefPtrWillBeRawPtr<IDBOpenDBRequest> openInternal(ExecutionContext*, con
st String& name, int64_t version, ExceptionState&); | 67 PassRefPtrWillBeRawPtr<IDBOpenDBRequest> openInternal(ScriptState*, const St
ring& name, int64_t version, ExceptionState&); |
| 68 | 68 |
| 69 RefPtrWillBeMember<IndexedDBClient> m_permissionClient; | 69 RefPtrWillBeMember<IndexedDBClient> m_permissionClient; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace WebCore | 72 } // namespace WebCore |
| 73 | 73 |
| 74 #endif // IDBFactory_h | 74 #endif // IDBFactory_h |
| OLD | NEW |