| 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 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 "base/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/nullable_string16.h" | 10 #include "base/nullable_string16.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace WebKit { | 21 namespace WebKit { |
| 22 class WebFrame; | 22 class WebFrame; |
| 23 class WebIDBKeyRange; | 23 class WebIDBKeyRange; |
| 24 class WebIDBTransaction; | 24 class WebIDBTransaction; |
| 25 } | 25 } |
| 26 | 26 |
| 27 // Handle the indexed db related communication for this entire renderer. | 27 // Handle the indexed db related communication for this entire renderer. |
| 28 class IndexedDBDispatcher : public IPC::Channel::Listener { | 28 class IndexedDBDispatcher : public IPC::Channel::Listener { |
| 29 public: | 29 public: |
| 30 IndexedDBDispatcher(); | 30 IndexedDBDispatcher(); |
| 31 ~IndexedDBDispatcher(); | 31 virtual ~IndexedDBDispatcher(); |
| 32 | 32 |
| 33 // IPC::Channel::Listener implementation. | 33 // IPC::Channel::Listener implementation. |
| 34 virtual bool OnMessageReceived(const IPC::Message& msg); | 34 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 35 | 35 |
| 36 void RequestIDBFactoryOpen( | 36 void RequestIDBFactoryOpen( |
| 37 const string16& name, | 37 const string16& name, |
| 38 WebKit::WebIDBCallbacks* callbacks, | 38 WebKit::WebIDBCallbacks* callbacks, |
| 39 const string16& origin, | 39 const string16& origin, |
| 40 WebKit::WebFrame* web_frame, | 40 WebKit::WebFrame* web_frame, |
| 41 uint64 maximum_size); | 41 uint64 maximum_size); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; | 167 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; |
| 168 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> | 168 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> |
| 169 pending_transaction_callbacks_; | 169 pending_transaction_callbacks_; |
| 170 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> | 170 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> |
| 171 pending_database_callbacks_; | 171 pending_database_callbacks_; |
| 172 | 172 |
| 173 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 173 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ | 176 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |