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 12 matching lines...) Expand all Loading... |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebIDBCallbacks_h | 26 #ifndef WebIDBCallbacks_h |
27 #define WebIDBCallbacks_h | 27 #define WebIDBCallbacks_h |
28 | 28 |
29 #include "WebCommon.h" | 29 #include "WebCommon.h" |
30 #include "WebString.h" | 30 #include "WebString.h" |
31 #include "WebVector.h" | 31 #include "WebVector.h" |
32 | 32 |
33 namespace WebKit { | 33 namespace blink { |
34 | 34 |
35 class WebData; | 35 class WebData; |
36 class WebIDBCursor; | 36 class WebIDBCursor; |
37 class WebIDBDatabase; | 37 class WebIDBDatabase; |
38 class WebIDBDatabaseError; | 38 class WebIDBDatabaseError; |
39 class WebIDBIndex; | 39 class WebIDBIndex; |
40 class WebIDBKey; | 40 class WebIDBKey; |
41 class WebIDBKeyPath; | 41 class WebIDBKeyPath; |
42 struct WebIDBMetadata; | 42 struct WebIDBMetadata; |
43 | 43 |
(...skipping 22 matching lines...) Expand all Loading... |
66 virtual void onBlocked(long long oldVersion) { BLINK_ASSERT_NOT_REACHED(); } | 66 virtual void onBlocked(long long oldVersion) { BLINK_ASSERT_NOT_REACHED(); } |
67 // FIXME: Remove this function after the associated chrome patch | 67 // FIXME: Remove this function after the associated chrome patch |
68 // (https://codereview.chromium.org/47513010/) has landed. | 68 // (https://codereview.chromium.org/47513010/) has landed. |
69 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase* database,
const WebIDBMetadata& metadata, DataLoss dataLoss) | 69 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase* database,
const WebIDBMetadata& metadata, DataLoss dataLoss) |
70 { | 70 { |
71 onUpgradeNeeded(oldVersion, database, metadata, dataLoss, WebString()); | 71 onUpgradeNeeded(oldVersion, database, metadata, dataLoss, WebString()); |
72 } | 72 } |
73 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const We
bIDBMetadata&, DataLoss dataLoss, WebString dataLossMessage) { BLINK_ASSERT_NOT_
REACHED(); } | 73 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const We
bIDBMetadata&, DataLoss dataLoss, WebString dataLossMessage) { BLINK_ASSERT_NOT_
REACHED(); } |
74 }; | 74 }; |
75 | 75 |
76 } // namespace WebKit | 76 } // namespace blink |
77 | 77 |
78 #endif // WebIDBCallbacks_h | 78 #endif // WebIDBCallbacks_h |
OLD | NEW |