| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
| 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 public: | 86 public: |
| 87 IndexedDBCallbacks( | 87 IndexedDBCallbacks( |
| 88 IndexedDBDispatcherHost* dispatcher_host, int32 response_id, | 88 IndexedDBDispatcherHost* dispatcher_host, int32 response_id, |
| 89 int32 cursor_id) | 89 int32 cursor_id) |
| 90 : IndexedDBCallbacksBase(dispatcher_host, response_id), | 90 : IndexedDBCallbacksBase(dispatcher_host, response_id), |
| 91 cursor_id_(cursor_id) { } | 91 cursor_id_(cursor_id) { } |
| 92 | 92 |
| 93 virtual void onSuccess(WebKit::WebIDBCursor* idb_object); | 93 virtual void onSuccess(WebKit::WebIDBCursor* idb_object); |
| 94 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); | 94 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); |
| 95 virtual void onSuccessWithContinuation(); | 95 virtual void onSuccessWithContinuation(); |
| 96 virtual void onSuccessWithPrefetch( |
| 97 const WebKit::WebVector<WebKit::WebIDBKey>& keys, |
| 98 const WebKit::WebVector<WebKit::WebIDBKey>& primaryKeys, |
| 99 const WebKit::WebVector<WebKit::WebSerializedScriptValue>& values); |
| 96 | 100 |
| 97 private: | 101 private: |
| 98 // The id of the cursor this callback concerns, or -1 if the cursor | 102 // The id of the cursor this callback concerns, or -1 if the cursor |
| 99 // does not exist yet. | 103 // does not exist yet. |
| 100 int32 cursor_id_; | 104 int32 cursor_id_; |
| 101 | 105 |
| 102 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 106 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
| 103 }; | 107 }; |
| 104 | 108 |
| 105 // WebIDBKey is implemented in WebKit as opposed to being an interface Chromium | 109 // WebIDBKey is implemented in WebKit as opposed to being an interface Chromium |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) | 151 IndexedDBDispatcherHost* dispatcher_host, int32 response_id) |
| 148 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } | 152 : IndexedDBCallbacksBase(dispatcher_host, response_id) { } |
| 149 | 153 |
| 150 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); | 154 virtual void onSuccess(const WebKit::WebSerializedScriptValue& value); |
| 151 | 155 |
| 152 private: | 156 private: |
| 153 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 157 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
| 154 }; | 158 }; |
| 155 | 159 |
| 156 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 160 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
| OLD | NEW |