| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 class DatabaseDispatcherHost { | 112 class DatabaseDispatcherHost { |
| 113 public: | 113 public: |
| 114 explicit DatabaseDispatcherHost(IndexedDBDispatcherHost* parent); | 114 explicit DatabaseDispatcherHost(IndexedDBDispatcherHost* parent); |
| 115 ~DatabaseDispatcherHost(); | 115 ~DatabaseDispatcherHost(); |
| 116 | 116 |
| 117 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); | 117 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); |
| 118 void Send(IPC::Message* message); | 118 void Send(IPC::Message* message); |
| 119 | 119 |
| 120 void OnMetadata(int32 idb_database_id, | 120 void OnMetadata(int32 idb_database_id, |
| 121 IndexedDBDatabaseMetadata* metadata); | 121 IndexedDBDatabaseMetadata* metadata); |
| 122 void OnName(int32 idb_database_id, string16* name); | |
| 123 void OnVersion(int32 idb_database_id, string16* version); | |
| 124 void OnObjectStoreNames(int32 idb_database_id, | |
| 125 std::vector<string16>* object_stores); | |
| 126 void OnCreateObjectStore( | 122 void OnCreateObjectStore( |
| 127 const IndexedDBHostMsg_DatabaseCreateObjectStore_Params& params, | 123 const IndexedDBHostMsg_DatabaseCreateObjectStore_Params& params, |
| 128 int32* object_store_id, WebKit::WebExceptionCode* ec); | 124 int32* object_store_id, WebKit::WebExceptionCode* ec); |
| 129 void OnDeleteObjectStore(int32 idb_database_id, | 125 void OnDeleteObjectStore(int32 idb_database_id, |
| 130 const string16& name, | 126 const string16& name, |
| 131 int32 transaction_id, | 127 int32 transaction_id, |
| 132 WebKit::WebExceptionCode* ec); | 128 WebKit::WebExceptionCode* ec); |
| 133 void OnSetVersion(int32 idb_database_id, | 129 void OnSetVersion(int32 idb_database_id, |
| 134 int32 thread_id, | 130 int32 thread_id, |
| 135 int32 response_id, | 131 int32 response_id, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 151 }; | 147 }; |
| 152 | 148 |
| 153 class IndexDispatcherHost { | 149 class IndexDispatcherHost { |
| 154 public: | 150 public: |
| 155 explicit IndexDispatcherHost(IndexedDBDispatcherHost* parent); | 151 explicit IndexDispatcherHost(IndexedDBDispatcherHost* parent); |
| 156 ~IndexDispatcherHost(); | 152 ~IndexDispatcherHost(); |
| 157 | 153 |
| 158 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); | 154 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); |
| 159 void Send(IPC::Message* message); | 155 void Send(IPC::Message* message); |
| 160 | 156 |
| 161 void OnName(int32 idb_index_id, string16* name); | |
| 162 void OnStoreName(int32 idb_index_id, string16* store_name); | |
| 163 void OnKeyPath(int32 idb_index_id, content::IndexedDBKeyPath* key_path); | |
| 164 void OnUnique(int32 idb_index_id, bool* unique); | |
| 165 void OnMultiEntry(int32 idb_index_id, bool* multi_entry); | |
| 166 void OnOpenObjectCursor( | 157 void OnOpenObjectCursor( |
| 167 const IndexedDBHostMsg_IndexOpenCursor_Params& params, | 158 const IndexedDBHostMsg_IndexOpenCursor_Params& params, |
| 168 WebKit::WebExceptionCode* ec); | 159 WebKit::WebExceptionCode* ec); |
| 169 void OnOpenKeyCursor(const IndexedDBHostMsg_IndexOpenCursor_Params& params, | 160 void OnOpenKeyCursor(const IndexedDBHostMsg_IndexOpenCursor_Params& params, |
| 170 WebKit::WebExceptionCode* ec); | 161 WebKit::WebExceptionCode* ec); |
| 171 void OnCount(const IndexedDBHostMsg_IndexCount_Params& params, | 162 void OnCount(const IndexedDBHostMsg_IndexCount_Params& params, |
| 172 WebKit::WebExceptionCode* ec); | 163 WebKit::WebExceptionCode* ec); |
| 173 void OnGetObject(int idb_index_id, | 164 void OnGetObject(int idb_index_id, |
| 174 int32 thread_id, | 165 int32 thread_id, |
| 175 int32 response_id, | 166 int32 response_id, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 189 }; | 180 }; |
| 190 | 181 |
| 191 class ObjectStoreDispatcherHost { | 182 class ObjectStoreDispatcherHost { |
| 192 public: | 183 public: |
| 193 explicit ObjectStoreDispatcherHost(IndexedDBDispatcherHost* parent); | 184 explicit ObjectStoreDispatcherHost(IndexedDBDispatcherHost* parent); |
| 194 ~ObjectStoreDispatcherHost(); | 185 ~ObjectStoreDispatcherHost(); |
| 195 | 186 |
| 196 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); | 187 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); |
| 197 void Send(IPC::Message* message); | 188 void Send(IPC::Message* message); |
| 198 | 189 |
| 199 void OnName(int32 idb_object_store_id, string16* name); | |
| 200 void OnKeyPath(int32 idb_object_store_id, | |
| 201 content::IndexedDBKeyPath* keyPath); | |
| 202 void OnIndexNames(int32 idb_object_store_id, | |
| 203 std::vector<string16>* index_names); | |
| 204 void OnAutoIncrement(int32 idb_object_store_id, bool* auto_increment); | |
| 205 void OnGet(int idb_object_store_id, | 190 void OnGet(int idb_object_store_id, |
| 206 int32 thread_id, | 191 int32 thread_id, |
| 207 int32 response_id, | 192 int32 response_id, |
| 208 const content::IndexedDBKeyRange& key_range, | 193 const content::IndexedDBKeyRange& key_range, |
| 209 int32 transaction_id, | 194 int32 transaction_id, |
| 210 WebKit::WebExceptionCode* ec); | 195 WebKit::WebExceptionCode* ec); |
| 211 void OnPut(const IndexedDBHostMsg_ObjectStorePut_Params& params, | 196 void OnPut(const IndexedDBHostMsg_ObjectStorePut_Params& params, |
| 212 WebKit::WebExceptionCode* ec); | 197 WebKit::WebExceptionCode* ec); |
| 213 void OnDelete(int idb_object_store_id, | 198 void OnDelete(int idb_object_store_id, |
| 214 int32 thread_id, | 199 int32 thread_id, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 309 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
| 325 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 310 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
| 326 | 311 |
| 327 // Used to dispatch messages to the correct view host. | 312 // Used to dispatch messages to the correct view host. |
| 328 int process_id_; | 313 int process_id_; |
| 329 | 314 |
| 330 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 315 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
| 331 }; | 316 }; |
| 332 | 317 |
| 333 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 318 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
| OLD | NEW |