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 WebIDBKeyPath; | 42 class WebIDBKeyPath; |
43 struct WebIDBMetadata; | 43 struct WebIDBMetadata; |
44 | 44 |
45 class WebIDBCallbacks { | 45 class WebIDBCallbacks { |
46 public: | 46 public: |
47 virtual ~WebIDBCallbacks() { } | 47 virtual ~WebIDBCallbacks() { } |
48 | 48 |
49 // Pointers transfer ownership. | 49 // Pointers transfer ownership. |
50 virtual void onError(const WebIDBDatabaseError&) { BLINK_ASSERT_NOT_REACHED(
); } | 50 virtual void onError(const WebIDBDatabaseError&) { BLINK_ASSERT_NOT_REACHED(
); } |
51 virtual void onSuccess(const WebVector<WebString>&) { BLINK_ASSERT_NOT_REACH
ED(); } | 51 virtual void onSuccess(const WebVector<WebString>&) { BLINK_ASSERT_NOT_REACH
ED(); } |
52 // TODO(ericu): Remove this version, here only for the 3-side patch dance. | |
53 virtual void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& pri
maryKey, const WebData&) { BLINK_ASSERT_NOT_REACHED(); } | |
54 virtual void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& pri
maryKey, const WebData&, const WebVector<WebBlobInfo>&) { BLINK_ASSERT_NOT_REACH
ED(); } | 52 virtual void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& pri
maryKey, const WebData&, const WebVector<WebBlobInfo>&) { BLINK_ASSERT_NOT_REACH
ED(); } |
55 virtual void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) { BLINK_ASSER
T_NOT_REACHED(); } | 53 virtual void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) { BLINK_ASSER
T_NOT_REACHED(); } |
56 virtual void onSuccess(const WebIDBKey&) { BLINK_ASSERT_NOT_REACHED(); } | 54 virtual void onSuccess(const WebIDBKey&) { BLINK_ASSERT_NOT_REACHED(); } |
57 // TODO(ericu): Remove this version, here only for the 3-side patch dance. | |
58 virtual void onSuccess(const WebData&) { BLINK_ASSERT_NOT_REACHED(); } | |
59 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&) { BLIN
K_ASSERT_NOT_REACHED(); } | 55 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&) { BLIN
K_ASSERT_NOT_REACHED(); } |
60 // TODO(ericu): Remove this version, here only for the 3-side patch dance. | |
61 virtual void onSuccess(const WebData&, const WebIDBKey&, const WebIDBKeyPath
&) { BLINK_ASSERT_NOT_REACHED(); } | |
62 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&, const
WebIDBKey&, const WebIDBKeyPath&) { BLINK_ASSERT_NOT_REACHED(); } | 56 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&, const
WebIDBKey&, const WebIDBKeyPath&) { BLINK_ASSERT_NOT_REACHED(); } |
63 virtual void onSuccess(long long) { BLINK_ASSERT_NOT_REACHED(); } | 57 virtual void onSuccess(long long) { BLINK_ASSERT_NOT_REACHED(); } |
64 virtual void onSuccess() { BLINK_ASSERT_NOT_REACHED(); } | 58 virtual void onSuccess() { BLINK_ASSERT_NOT_REACHED(); } |
65 // TODO(ericu): Remove this version, here only for the 3-side patch dance. | |
66 virtual void onSuccess(const WebIDBKey&, const WebIDBKey& primaryKey, const
WebData&) { BLINK_ASSERT_NOT_REACHED(); } | |
67 virtual void onSuccess(const WebIDBKey&, const WebIDBKey& primaryKey, const
WebData&, const WebVector<WebBlobInfo>&) { BLINK_ASSERT_NOT_REACHED(); } | 59 virtual void onSuccess(const WebIDBKey&, const WebIDBKey& primaryKey, const
WebData&, const WebVector<WebBlobInfo>&) { BLINK_ASSERT_NOT_REACHED(); } |
68 virtual void onBlocked(long long oldVersion) { BLINK_ASSERT_NOT_REACHED(); } | 60 virtual void onBlocked(long long oldVersion) { BLINK_ASSERT_NOT_REACHED(); } |
69 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const We
bIDBMetadata&, unsigned short dataLoss, WebString dataLossMessage) { BLINK_ASSER
T_NOT_REACHED(); } | 61 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const We
bIDBMetadata&, unsigned short dataLoss, WebString dataLossMessage) { BLINK_ASSER
T_NOT_REACHED(); } |
70 }; | 62 }; |
71 | 63 |
72 } // namespace blink | 64 } // namespace blink |
73 | 65 |
74 #endif // WebIDBCallbacks_h | 66 #endif // WebIDBCallbacks_h |
OLD | NEW |