| 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_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Handles all IndexedDB related messages from a particular renderer process. | 39 // Handles all IndexedDB related messages from a particular renderer process. |
| 40 class IndexedDBDispatcherHost : public BrowserMessageFilter { | 40 class IndexedDBDispatcherHost : public BrowserMessageFilter { |
| 41 public: | 41 public: |
| 42 // Only call the constructor from the UI thread. | 42 // Only call the constructor from the UI thread. |
| 43 IndexedDBDispatcherHost(int process_id, WebKitContext* webkit_context); | 43 IndexedDBDispatcherHost(int process_id, WebKitContext* webkit_context); |
| 44 | 44 |
| 45 // BrowserMessageFilter implementation. | 45 // BrowserMessageFilter implementation. |
| 46 virtual void OnChannelClosing(); | 46 virtual void OnChannelClosing(); |
| 47 virtual void OverrideThreadForMessage(const IPC::Message& message, | 47 virtual void OverrideThreadForMessage(const IPC::Message& message, |
| 48 BrowserThread::ID* thread); | 48 content::BrowserThread::ID* thread); |
| 49 virtual bool OnMessageReceived(const IPC::Message& message, | 49 virtual bool OnMessageReceived(const IPC::Message& message, |
| 50 bool* message_was_ok); | 50 bool* message_was_ok); |
| 51 | 51 |
| 52 void TransactionComplete(int32 transaction_id); | 52 void TransactionComplete(int32 transaction_id); |
| 53 | 53 |
| 54 // A shortcut for accessing our context. | 54 // A shortcut for accessing our context. |
| 55 IndexedDBContext* Context() { | 55 IndexedDBContext* Context() { |
| 56 return webkit_context_->indexed_db_context(); | 56 return webkit_context_->indexed_db_context(); |
| 57 } | 57 } |
| 58 | 58 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 279 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
| 280 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 280 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
| 281 | 281 |
| 282 // Used to dispatch messages to the correct view host. | 282 // Used to dispatch messages to the correct view host. |
| 283 int process_id_; | 283 int process_id_; |
| 284 | 284 |
| 285 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 285 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 286 }; | 286 }; |
| 287 | 287 |
| 288 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 288 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |