| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // The entry point into the IndexedDatabase API. These classes match their Foo
and | 46 // The entry point into the IndexedDatabase API. These classes match their Foo
and |
| 47 // FooSync counterparts in the spec, but operate only in an async manner. | 47 // FooSync counterparts in the spec, but operate only in an async manner. |
| 48 // http://dev.w3.org/2006/webapi/WebSimpleDB/ | 48 // http://dev.w3.org/2006/webapi/WebSimpleDB/ |
| 49 class WebIDBFactory { | 49 class WebIDBFactory { |
| 50 public: | 50 public: |
| 51 WEBKIT_EXPORT static WebIDBFactory* create(); | 51 WEBKIT_EXPORT static WebIDBFactory* create(); |
| 52 | 52 |
| 53 virtual ~WebIDBFactory() { } | 53 virtual ~WebIDBFactory() { } |
| 54 | 54 |
| 55 virtual void getDatabaseNames(WebIDBCallbacks* callbacks, const WebSecurityO
rigin& origin, WebFrame* frame, const WebString& dataDir) { WEBKIT_ASSERT_NOT_RE
ACHED(); } | 55 virtual void getDatabaseNames(WebIDBCallbacks* callbacks, const WebSecurityO
rigin& origin, WebFrame* frame, const WebString& dataDir) { WEBKIT_ASSERT_NOT_RE
ACHED(); } |
| 56 virtual void getDatabaseNames(WebIDBCallbacks* callbacks, const WebString& d
atabaseIdentifier, const WebString& dataDir) { getDatabaseNames(callbacks, WebSe
curityOrigin::createFromDatabaseIdentifier(databaseIdentifier), 0, dataDir); } |
| 56 | 57 |
| 57 // The WebKit implementation of open ignores the WebFrame* parameter. | 58 // The WebKit implementation of open ignores the WebFrame* parameter. |
| 58 virtual void open(const WebString& name, long long version, long long transa
ctionId, WebIDBCallbacks* callbacks, WebIDBDatabaseCallbacks* databaseCallbacks,
const WebSecurityOrigin& origin, WebFrame* frame, const WebString& dataDir) { W
EBKIT_ASSERT_NOT_REACHED(); } | 59 virtual void open(const WebString& name, long long version, long long transa
ctionId, WebIDBCallbacks* callbacks, WebIDBDatabaseCallbacks* databaseCallbacks,
const WebSecurityOrigin& origin, WebFrame* frame, const WebString& dataDir) { W
EBKIT_ASSERT_NOT_REACHED(); } |
| 60 virtual void open(const WebString& name, long long version, long long transa
ctionId, WebIDBCallbacks* callbacks, WebIDBDatabaseCallbacks* databaseCallbacks,
const WebString& databaseIdentifier, const WebString& dataDir) { open(name, ver
sion, transactionId, callbacks, databaseCallbacks, WebSecurityOrigin::createFrom
DatabaseIdentifier(databaseIdentifier), 0, dataDir); } |
| 59 | 61 |
| 60 virtual void deleteDatabase(const WebString& name, WebIDBCallbacks*, const W
ebSecurityOrigin&, WebFrame*, const WebString& dataDir) { WEBKIT_ASSERT_NOT_REAC
HED(); } | 62 virtual void deleteDatabase(const WebString& name, WebIDBCallbacks*, const W
ebSecurityOrigin&, WebFrame*, const WebString& dataDir) { WEBKIT_ASSERT_NOT_REAC
HED(); } |
| 63 virtual void deleteDatabase(const WebString& name, WebIDBCallbacks* callback
s, const WebString& databaseIdentifier, const WebString& dataDir) { deleteDataba
se(name, callbacks, WebSecurityOrigin::createFromDatabaseIdentifier(databaseIden
tifier), 0, dataDir); } |
| 61 }; | 64 }; |
| 62 | 65 |
| 63 // Initializes IndexedDB support. | 66 // Initializes IndexedDB support. |
| 64 WEBKIT_EXPORT void setIDBFactory(WebIDBFactory*); | 67 WEBKIT_EXPORT void setIDBFactory(WebIDBFactory*); |
| 65 | 68 |
| 66 } // namespace WebKit | 69 } // namespace WebKit |
| 67 | 70 |
| 68 #endif // WebIDBFactory_h | 71 #endif // WebIDBFactory_h |
| OLD | NEW |