| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> |
| 9 #include <vector> | 10 #include <vector> |
| 10 | 11 |
| 11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 12 #include "base/id_map.h" | 13 #include "base/id_map.h" |
| 13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 14 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 15 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 15 #include "content/public/browser/browser_message_filter.h" | 16 #include "content/public/browser/browser_message_filter.h" |
| 16 #include "net/url_request/url_request_context_getter.h" | 17 #include "net/url_request/url_request_context_getter.h" |
| 17 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 18 #include "webkit/browser/blob/blob_data_handle.h" | 19 #include "webkit/browser/blob/blob_data_handle.h" |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 class CursorDispatcherHost { | 234 class CursorDispatcherHost { |
| 234 public: | 235 public: |
| 235 explicit CursorDispatcherHost(IndexedDBDispatcherHost* parent); | 236 explicit CursorDispatcherHost(IndexedDBDispatcherHost* parent); |
| 236 ~CursorDispatcherHost(); | 237 ~CursorDispatcherHost(); |
| 237 | 238 |
| 238 bool OnMessageReceived(const IPC::Message& message); | 239 bool OnMessageReceived(const IPC::Message& message); |
| 239 | 240 |
| 240 void OnAdvance(int32 ipc_object_store_id, | 241 void OnAdvance(int32 ipc_object_store_id, |
| 241 int32 ipc_thread_id, | 242 int32 ipc_thread_id, |
| 242 int32 ipc_callbacks_id, | 243 int32 ipc_callbacks_id, |
| 243 unsigned long count); | 244 uint32 count); |
| 244 void OnContinue(int32 ipc_object_store_id, | 245 void OnContinue(int32 ipc_object_store_id, |
| 245 int32 ipc_thread_id, | 246 int32 ipc_thread_id, |
| 246 int32 ipc_callbacks_id, | 247 int32 ipc_callbacks_id, |
| 247 const IndexedDBKey& key, | 248 const IndexedDBKey& key, |
| 248 const IndexedDBKey& primary_key); | 249 const IndexedDBKey& primary_key); |
| 249 void OnPrefetch(int32 ipc_cursor_id, | 250 void OnPrefetch(int32 ipc_cursor_id, |
| 250 int32 ipc_thread_id, | 251 int32 ipc_thread_id, |
| 251 int32 ipc_callbacks_id, | 252 int32 ipc_callbacks_id, |
| 252 int n); | 253 int n); |
| 253 void OnPrefetchReset(int32 ipc_cursor_id, | 254 void OnPrefetchReset(int32 ipc_cursor_id, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 278 | 279 |
| 279 // Used to set file permissions for blob storage. | 280 // Used to set file permissions for blob storage. |
| 280 int ipc_process_id_; | 281 int ipc_process_id_; |
| 281 | 282 |
| 282 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 283 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 283 }; | 284 }; |
| 284 | 285 |
| 285 } // namespace content | 286 } // namespace content |
| 286 | 287 |
| 287 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ | 288 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |