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 12 matching lines...) Expand all Loading... |
23 class WebIDBTransaction; | 23 class WebIDBTransaction; |
24 } | 24 } |
25 | 25 |
26 // Handle the indexed db related communication for this entire renderer. | 26 // Handle the indexed db related communication for this entire renderer. |
27 class IndexedDBDispatcher : public IPC::Channel::Listener { | 27 class IndexedDBDispatcher : public IPC::Channel::Listener { |
28 public: | 28 public: |
29 IndexedDBDispatcher(); | 29 IndexedDBDispatcher(); |
30 ~IndexedDBDispatcher(); | 30 ~IndexedDBDispatcher(); |
31 | 31 |
32 // IPC::Channel::Listener implementation. | 32 // IPC::Channel::Listener implementation. |
33 bool OnMessageReceived(const IPC::Message& msg); | 33 virtual bool OnMessageReceived(const IPC::Message& msg); |
34 | 34 |
35 void RequestIDBFactoryOpen( | 35 void RequestIDBFactoryOpen( |
36 const string16& name, | 36 const string16& name, |
37 WebKit::WebIDBCallbacks* callbacks, | 37 WebKit::WebIDBCallbacks* callbacks, |
38 const string16& origin, | 38 const string16& origin, |
39 WebKit::WebFrame* web_frame, | 39 WebKit::WebFrame* web_frame, |
40 uint64 maximum_size); | 40 uint64 maximum_size); |
41 | 41 |
42 void RequestIDBCursorUpdate( | 42 void RequestIDBCursorUpdate( |
43 const SerializedScriptValue& value, | 43 const SerializedScriptValue& value, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be | 144 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be |
145 // destroyed and used on the same thread it was created on. | 145 // destroyed and used on the same thread it was created on. |
146 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; | 146 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; |
147 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> | 147 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> |
148 pending_transaction_callbacks_; | 148 pending_transaction_callbacks_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 150 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
151 }; | 151 }; |
152 | 152 |
153 #endif // CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ | 153 #endif // CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |