OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2013 Apple 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 DatabaseCallback; | 42 class DatabaseCallback; |
43 class DatabaseContext; | 43 class DatabaseContext; |
44 class SecurityOrigin; | 44 class SecurityOrigin; |
45 class SQLTransaction; | 45 class SQLTransaction; |
46 class SQLTransactionBackend; | 46 class SQLTransactionBackend; |
47 class SQLTransactionCallback; | 47 class SQLTransactionCallback; |
48 class SQLTransactionErrorCallback; | 48 class SQLTransactionErrorCallback; |
49 class VoidCallback; | 49 class VoidCallback; |
50 | 50 |
51 class Database FINAL : public DatabaseBackend, public DatabaseBase, public Scrip
tWrappable { | 51 class Database FINAL : public DatabaseBackend, public DatabaseBase, public Scrip
tWrappable { |
| 52 DEFINE_WRAPPERTYPEINFO(); |
52 public: | 53 public: |
53 virtual ~Database(); | 54 virtual ~Database(); |
54 virtual void trace(Visitor*) OVERRIDE; | 55 virtual void trace(Visitor*) OVERRIDE; |
55 | 56 |
56 // Direct support for the DOM API | 57 // Direct support for the DOM API |
57 virtual String version() const OVERRIDE; | 58 virtual String version() const OVERRIDE; |
58 void changeVersion(const String& oldVersion, const String& newVersion, PassO
wnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwnPtrWillBeRawPtr<SQLTransaction
ErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallback> successCallback); | 59 void changeVersion(const String& oldVersion, const String& newVersion, PassO
wnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwnPtrWillBeRawPtr<SQLTransaction
ErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallback> successCallback); |
59 void transaction(PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwnPtrW
illBeRawPtr<SQLTransactionErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallback> s
uccessCallback); | 60 void transaction(PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwnPtrW
illBeRawPtr<SQLTransactionErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallback> s
uccessCallback); |
60 void readTransaction(PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwn
PtrWillBeRawPtr<SQLTransactionErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallbac
k> successCallback); | 61 void readTransaction(PassOwnPtrWillBeRawPtr<SQLTransactionCallback>, PassOwn
PtrWillBeRawPtr<SQLTransactionErrorCallback>, PassOwnPtrWillBeRawPtr<VoidCallbac
k> successCallback); |
61 | 62 |
(...skipping 29 matching lines...) Expand all Loading... |
91 friend class DatabaseManager; | 92 friend class DatabaseManager; |
92 friend class DatabaseServer; // FIXME: remove this when the backend has been
split out. | 93 friend class DatabaseServer; // FIXME: remove this when the backend has been
split out. |
93 friend class DatabaseBackend; // FIXME: remove this when the backend has bee
n split out. | 94 friend class DatabaseBackend; // FIXME: remove this when the backend has bee
n split out. |
94 friend class SQLStatement; | 95 friend class SQLStatement; |
95 friend class SQLTransaction; | 96 friend class SQLTransaction; |
96 }; | 97 }; |
97 | 98 |
98 } // namespace blink | 99 } // namespace blink |
99 | 100 |
100 #endif // Database_h | 101 #endif // Database_h |
OLD | NEW |