| 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 21 matching lines...) Expand all Loading... |
| 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) OVERRIDE; | 41 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 42 void Send(IPC::Message* msg); |
| 42 | 43 |
| 43 void RequestIDBFactoryGetDatabaseNames( | 44 void RequestIDBFactoryGetDatabaseNames( |
| 44 WebKit::WebIDBCallbacks* callbacks, | 45 WebKit::WebIDBCallbacks* callbacks, |
| 45 const string16& origin, | 46 const string16& origin, |
| 46 WebKit::WebFrame* web_frame); | 47 WebKit::WebFrame* web_frame); |
| 47 | 48 |
| 48 void RequestIDBFactoryOpen( | 49 void RequestIDBFactoryOpen( |
| 49 const string16& name, | 50 const string16& name, |
| 50 WebKit::WebIDBCallbacks* callbacks, | 51 WebKit::WebIDBCallbacks* callbacks, |
| 51 const string16& origin, | 52 const string16& origin, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> | 193 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> |
| 193 pending_database_callbacks_; | 194 pending_database_callbacks_; |
| 194 | 195 |
| 195 // Map from cursor id to RendererWebIDBCursorImpl. | 196 // Map from cursor id to RendererWebIDBCursorImpl. |
| 196 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 197 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
| 197 | 198 |
| 198 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 199 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ | 202 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |