| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class WorkerClients; | 42 class WorkerClients; |
| 43 | 43 |
| 44 class MODULES_EXPORT IndexedDBClient | 44 class MODULES_EXPORT IndexedDBClient |
| 45 : public GarbageCollectedFinalized<IndexedDBClient>, | 45 : public GarbageCollectedFinalized<IndexedDBClient>, |
| 46 public Supplement<LocalFrame>, | 46 public Supplement<LocalFrame>, |
| 47 public Supplement<WorkerClients> { | 47 public Supplement<WorkerClients> { |
| 48 USING_GARBAGE_COLLECTED_MIXIN(IndexedDBClient); | 48 USING_GARBAGE_COLLECTED_MIXIN(IndexedDBClient); |
| 49 WTF_MAKE_NONCOPYABLE(IndexedDBClient); | 49 WTF_MAKE_NONCOPYABLE(IndexedDBClient); |
| 50 | 50 |
| 51 public: | 51 public: |
| 52 IndexedDBClient(); | 52 explicit IndexedDBClient(LocalFrame&); |
| 53 explicit IndexedDBClient(WorkerClients&); |
| 53 virtual ~IndexedDBClient() {} | 54 virtual ~IndexedDBClient() {} |
| 54 | 55 |
| 55 DECLARE_VIRTUAL_TRACE(); | 56 DECLARE_VIRTUAL_TRACE(); |
| 56 | 57 |
| 57 virtual bool allowIndexedDB(ExecutionContext*, const String& name) = 0; | 58 virtual bool allowIndexedDB(ExecutionContext*, const String& name) = 0; |
| 58 | 59 |
| 59 static IndexedDBClient* from(ExecutionContext*); | 60 static IndexedDBClient* from(ExecutionContext*); |
| 60 static const char* supplementName(); | 61 static const char* supplementName(); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 MODULES_EXPORT void provideIndexedDBClientTo(LocalFrame&, IndexedDBClient*); | 64 MODULES_EXPORT void provideIndexedDBClientTo(LocalFrame&, IndexedDBClient*); |
| 64 | 65 |
| 65 MODULES_EXPORT void provideIndexedDBClientToWorker(WorkerClients*, | 66 MODULES_EXPORT void provideIndexedDBClientToWorker(WorkerClients*, |
| 66 IndexedDBClient*); | 67 IndexedDBClient*); |
| 67 | 68 |
| 68 } // namespace blink | 69 } // namespace blink |
| 69 | 70 |
| 70 #endif // IndexedDBClient_h | 71 #endif // IndexedDBClient_h |
| OLD | NEW |