OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ |
6 #define CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ | 6 #define CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/nullable_string16.h" | 10 #include "base/nullable_string16.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 class IndexedDBDispatcher { | 26 class IndexedDBDispatcher { |
27 public: | 27 public: |
28 IndexedDBDispatcher(); | 28 IndexedDBDispatcher(); |
29 ~IndexedDBDispatcher(); | 29 ~IndexedDBDispatcher(); |
30 | 30 |
31 // Called to possibly handle the incoming IPC message. Returns true if | 31 // Called to possibly handle the incoming IPC message. Returns true if |
32 // handled. | 32 // handled. |
33 bool OnMessageReceived(const IPC::Message& msg); | 33 bool OnMessageReceived(const IPC::Message& msg); |
34 | 34 |
35 void RequestIDBFactoryOpen( | 35 void RequestIDBFactoryOpen( |
36 const string16& name, const string16& description, | 36 const string16& name, |
37 WebKit::WebIDBCallbacks* callbacks, const string16& origin, | 37 const string16& description, |
38 WebKit::WebFrame* web_frame); | 38 WebKit::WebIDBCallbacks* callbacks, |
| 39 const string16& origin, |
| 40 WebKit::WebFrame* web_frame, |
| 41 uint64 maximum_size); |
39 | 42 |
40 void RequestIDBCursorUpdate( | 43 void RequestIDBCursorUpdate( |
41 const SerializedScriptValue& value, | 44 const SerializedScriptValue& value, |
42 WebKit::WebIDBCallbacks* callbacks_ptr, | 45 WebKit::WebIDBCallbacks* callbacks_ptr, |
43 int32 idb_cursor_id); | 46 int32 idb_cursor_id); |
44 | 47 |
45 void RequestIDBCursorContinue( | 48 void RequestIDBCursorContinue( |
46 const IndexedDBKey& key, | 49 const IndexedDBKey& key, |
47 WebKit::WebIDBCallbacks* callbacks_ptr, | 50 WebKit::WebIDBCallbacks* callbacks_ptr, |
48 int32 idb_cursor_id); | 51 int32 idb_cursor_id); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be | 132 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be |
130 // destroyed and used on the same thread it was created on. | 133 // destroyed and used on the same thread it was created on. |
131 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; | 134 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; |
132 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> | 135 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> |
133 pending_transaction_callbacks_; | 136 pending_transaction_callbacks_; |
134 | 137 |
135 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 138 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
136 }; | 139 }; |
137 | 140 |
138 #endif // CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ | 141 #endif // CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |