| 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_RENDERER_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 class SerializedScriptValue; | 31 class SerializedScriptValue; |
| 32 } | 32 } |
| 33 | 33 |
| 34 // Handle the indexed db related communication for this entire renderer. | 34 // Handle the indexed db related communication for this entire renderer. |
| 35 class IndexedDBDispatcher : public IPC::Channel::Listener { | 35 class IndexedDBDispatcher : public IPC::Channel::Listener { |
| 36 public: | 36 public: |
| 37 IndexedDBDispatcher(); | 37 IndexedDBDispatcher(); |
| 38 virtual ~IndexedDBDispatcher(); | 38 virtual ~IndexedDBDispatcher(); |
| 39 | 39 |
| 40 // IPC::Channel::Listener implementation. | 40 // IPC::Channel::Listener implementation. |
| 41 virtual bool OnMessageReceived(const IPC::Message& msg); | 41 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 42 | 42 |
| 43 void RequestIDBFactoryGetDatabaseNames( | 43 void RequestIDBFactoryGetDatabaseNames( |
| 44 WebKit::WebIDBCallbacks* callbacks, | 44 WebKit::WebIDBCallbacks* callbacks, |
| 45 const string16& origin, | 45 const string16& origin, |
| 46 WebKit::WebFrame* web_frame); | 46 WebKit::WebFrame* web_frame); |
| 47 | 47 |
| 48 void RequestIDBFactoryOpen( | 48 void RequestIDBFactoryOpen( |
| 49 const string16& name, | 49 const string16& name, |
| 50 WebKit::WebIDBCallbacks* callbacks, | 50 WebKit::WebIDBCallbacks* callbacks, |
| 51 const string16& origin, | 51 const string16& origin, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> | 192 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> |
| 193 pending_database_callbacks_; | 193 pending_database_callbacks_; |
| 194 | 194 |
| 195 // Map from cursor id to RendererWebIDBCursorImpl. | 195 // Map from cursor id to RendererWebIDBCursorImpl. |
| 196 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 196 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
| 197 | 197 |
| 198 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 198 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ | 201 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |