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 18 matching lines...) Expand all Loading... | |
29 #define IDBFactory_h | 29 #define IDBFactory_h |
30 | 30 |
31 #include "bindings/core/v8/ScriptWrappable.h" | 31 #include "bindings/core/v8/ScriptWrappable.h" |
32 #include "modules/indexeddb/IDBOpenDBRequest.h" | 32 #include "modules/indexeddb/IDBOpenDBRequest.h" |
33 #include "modules/indexeddb/IndexedDBClient.h" | 33 #include "modules/indexeddb/IndexedDBClient.h" |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class ExceptionState; | |
jsbell
2014/10/13 18:43:21
This type appears to still be referenced. What's t
| |
40 class IDBKey; | |
41 class IDBKeyRange; | |
42 class ExecutionContext; | 39 class ExecutionContext; |
jsbell
2014/10/13 18:43:22
ExecutionContext is not referenced and can be remo
zhaoze.zhou
2014/10/13 19:17:14
Done.
| |
43 | 40 |
44 class IDBFactory final : public GarbageCollected<IDBFactory>, public ScriptWrapp able { | 41 class IDBFactory final : public GarbageCollected<IDBFactory>, public ScriptWrapp able { |
45 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
46 public: | 43 public: |
47 static IDBFactory* create(IndexedDBClient* client) | 44 static IDBFactory* create(IndexedDBClient* client) |
48 { | 45 { |
49 return new IDBFactory(client); | 46 return new IDBFactory(client); |
50 } | 47 } |
51 void trace(Visitor*); | 48 void trace(Visitor*); |
52 | 49 |
53 IDBRequest* getDatabaseNames(ScriptState*, ExceptionState&); | 50 IDBRequest* getDatabaseNames(ScriptState*, ExceptionState&); |
54 | 51 |
55 IDBOpenDBRequest* open(ScriptState*, const String& name, ExceptionState&); | 52 IDBOpenDBRequest* open(ScriptState*, const String& name, ExceptionState&); |
56 IDBOpenDBRequest* open(ScriptState*, const String& name, unsigned long long version, ExceptionState&); | 53 IDBOpenDBRequest* open(ScriptState*, const String& name, unsigned long long version, ExceptionState&); |
57 IDBOpenDBRequest* deleteDatabase(ScriptState*, const String& name, Exception State&); | 54 IDBOpenDBRequest* deleteDatabase(ScriptState*, const String& name, Exception State&); |
58 | 55 |
59 short cmp(ScriptState*, const ScriptValue& first, const ScriptValue& second, ExceptionState&); | 56 short cmp(ScriptState*, const ScriptValue& first, const ScriptValue& second, ExceptionState&); |
60 | 57 |
61 private: | 58 private: |
62 explicit IDBFactory(IndexedDBClient*); | 59 explicit IDBFactory(IndexedDBClient*); |
63 | 60 |
64 IDBOpenDBRequest* openInternal(ScriptState*, const String& name, int64_t ver sion, ExceptionState&); | 61 IDBOpenDBRequest* openInternal(ScriptState*, const String& name, int64_t ver sion, ExceptionState&); |
65 | 62 |
66 Member<IndexedDBClient> m_permissionClient; | 63 Member<IndexedDBClient> m_permissionClient; |
67 }; | 64 }; |
68 | 65 |
69 } // namespace blink | 66 } // namespace blink |
70 | 67 |
71 #endif // IDBFactory_h | 68 #endif // IDBFactory_h |
OLD | NEW |