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_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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // BrowserMessageFilter implementation. | 52 // BrowserMessageFilter implementation. |
53 virtual void OnChannelClosing() OVERRIDE; | 53 virtual void OnChannelClosing() OVERRIDE; |
54 virtual void OverrideThreadForMessage(const IPC::Message& message, | 54 virtual void OverrideThreadForMessage(const IPC::Message& message, |
55 BrowserThread::ID* thread) OVERRIDE; | 55 BrowserThread::ID* thread) OVERRIDE; |
56 virtual bool OnMessageReceived(const IPC::Message& message, | 56 virtual bool OnMessageReceived(const IPC::Message& message, |
57 bool* message_was_ok) OVERRIDE; | 57 bool* message_was_ok) OVERRIDE; |
58 | 58 |
59 void FinishTransaction(int64 host_transaction_id, bool committed); | 59 void FinishTransaction(int64 host_transaction_id, bool committed); |
60 | 60 |
61 // A shortcut for accessing our context. | 61 // A shortcut for accessing our context. |
62 IndexedDBContextImpl* Context() { return indexed_db_context_; } | 62 IndexedDBContextImpl* Context() { return indexed_db_context_.get(); } |
63 | 63 |
64 // The various IndexedDBCallbacks children call these methods to add the | 64 // The various IndexedDBCallbacks children call these methods to add the |
65 // results into the applicable map. See below for more details. | 65 // results into the applicable map. See below for more details. |
66 int32 Add(WebKit::WebIDBCursor* idb_cursor); | 66 int32 Add(WebKit::WebIDBCursor* idb_cursor); |
67 int32 Add(WebKit::WebIDBDatabase* idb_database, | 67 int32 Add(WebKit::WebIDBDatabase* idb_database, |
68 int32 ipc_thread_id, | 68 int32 ipc_thread_id, |
69 const GURL& origin_url); | 69 const GURL& origin_url); |
70 | 70 |
71 void RegisterTransactionId(int64 host_transaction_id, const GURL& origin_url); | 71 void RegisterTransactionId(int64 host_transaction_id, const GURL& origin_url); |
72 | 72 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 // Used to dispatch messages to the correct view host. | 202 // Used to dispatch messages to the correct view host. |
203 int ipc_process_id_; | 203 int ipc_process_id_; |
204 | 204 |
205 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 205 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
206 }; | 206 }; |
207 | 207 |
208 } // namespace content | 208 } // namespace content |
209 | 209 |
210 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 210 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |