Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: chrome/renderer/indexed_db_dispatcher.h

Issue 3163028: Fix compilation errors of 56862 (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix include path (again) Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/indexed_db_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_
6 #define CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ 6 #define CHROME_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"
11 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebIDBCallbacks.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebIDBCallbacks.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebIDBDatabase.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebIDBDatabase.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebIDBTransactionCallbacks.h "
14 15
15 class IndexedDBKey; 16 class IndexedDBKey;
16 class SerializedScriptValue; 17 class SerializedScriptValue;
17 18
18 namespace WebKit { 19 namespace WebKit {
19 class WebFrame; 20 class WebFrame;
20 class WebIDBKeyRange; 21 class WebIDBKeyRange;
21 } 22 }
22 23
23 // Handle the indexed db related communication for this entire renderer. 24 // Handle the indexed db related communication for this entire renderer.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 WebKit::WebIDBCallbacks* callbacks, int32 idb_object_store_id); 63 WebKit::WebIDBCallbacks* callbacks, int32 idb_object_store_id);
63 64
64 void RequestIDBObjectStoreRemoveIndex( 65 void RequestIDBObjectStoreRemoveIndex(
65 const string16& name, WebKit::WebIDBCallbacks* callbacks, 66 const string16& name, WebKit::WebIDBCallbacks* callbacks,
66 int32 idb_object_store_id); 67 int32 idb_object_store_id);
67 68
68 void RequestIDBObjectStoreOpenCursor( 69 void RequestIDBObjectStoreOpenCursor(
69 const WebKit::WebIDBKeyRange& idb_key_range, unsigned short direction, 70 const WebKit::WebIDBKeyRange& idb_key_range, unsigned short direction,
70 WebKit::WebIDBCallbacks* callbacks, int32 idb_object_store_id); 71 WebKit::WebIDBCallbacks* callbacks, int32 idb_object_store_id);
71 72
73 void RequestIDBTransactionSetCallbacks(
74 WebKit::WebIDBTransactionCallbacks* callbacks);
75
72 private: 76 private:
73 // IDBCallback message handlers. 77 // IDBCallback message handlers.
74 void OnSuccessNull(int32 response_id); 78 void OnSuccessNull(int32 response_id);
75 void OnSuccessIDBDatabase(int32 response_id, int32 object_id); 79 void OnSuccessIDBDatabase(int32 response_id, int32 object_id);
76 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key); 80 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key);
77 void OnSuccessIDBObjectStore(int32 response_id, int32 object_id); 81 void OnSuccessIDBObjectStore(int32 response_id, int32 object_id);
78 void OnSuccessIDBIndex(int32 response_id, int32 object_id); 82 void OnSuccessIDBIndex(int32 response_id, int32 object_id);
79 void OnSuccessOpenCursor(int32 response_id, int32 object_id); 83 void OnSuccessOpenCursor(int32 response_id, int32 object_id);
80 void OnSuccessSerializedScriptValue(int32 response_id, 84 void OnSuccessSerializedScriptValue(int32 response_id,
81 const SerializedScriptValue& value); 85 const SerializedScriptValue& value);
82 void OnError(int32 response_id, int code, const string16& message); 86 void OnError(int32 response_id, int code, const string16& message);
87 void OnAbort(int transaction_id);
83 88
84 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be 89 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be
85 // destroyed and used on the same thread it was created on. 90 // destroyed and used on the same thread it was created on.
86 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; 91 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_;
92 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer>
93 pending_transaction_callbacks_;
87 94
88 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 95 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
89 }; 96 };
90 97
91 #endif // CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_ 98 #endif // CHROME_RENDERER_INDEXED_DB_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698