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

Unified Diff: chrome/browser/in_process_webkit/indexed_db_callbacks.h

Issue 6458004: Remove includes of message headers in headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/in_process_webkit/indexed_db_callbacks.h
===================================================================
--- chrome/browser/in_process_webkit/indexed_db_callbacks.h (revision 74235)
+++ chrome/browser/in_process_webkit/indexed_db_callbacks.h (working copy)
@@ -9,13 +9,17 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
#include "chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h"
-#include "chrome/common/indexed_db_messages.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCallbacks.h"
+class IndexedDBMsg_CallbacksSuccessIDBDatabase;
+class IndexedDBMsg_CallbacksSuccessIDBIndex;
+class IndexedDBMsg_CallbacksSuccessIDBObjectStore;
+class IndexedDBMsg_CallbacksSuccessIDBTransaction;
+
// Template magic to figure out what message to send to the renderer based on
// which (overloaded) onSuccess method we expect to be called.
template <class Type> struct WebIDBToMsgHelper { };
@@ -85,18 +89,9 @@
IndexedDBDispatcherHost* dispatcher_host, int32 response_id)
: IndexedDBCallbacksBase(dispatcher_host, response_id) { }
- virtual void onSuccess(WebKit::WebIDBCursor* idb_object) {
- int32 object_id = dispatcher_host()->Add(idb_object);
- dispatcher_host()->Send(
- new IndexedDBMsg_CallbacksSuccessIDBCursor(response_id(), object_id));
- }
+ virtual void onSuccess(WebKit::WebIDBCursor* idb_object);
+ virtual void onSuccess(const WebKit::WebSerializedScriptValue& value);
- virtual void onSuccess(const WebKit::WebSerializedScriptValue& value) {
- dispatcher_host()->Send(
- new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
- response_id(), SerializedScriptValue(value)));
- }
-
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks);
};
@@ -112,11 +107,7 @@
IndexedDBDispatcherHost* dispatcher_host, int32 response_id)
: IndexedDBCallbacksBase(dispatcher_host, response_id) { }
- virtual void onSuccess(const WebKit::WebIDBKey& value) {
- dispatcher_host()->Send(
- new IndexedDBMsg_CallbacksSuccessIndexedDBKey(
- response_id(), IndexedDBKey(value)));
- }
+ virtual void onSuccess(const WebKit::WebIDBKey& value);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks);
@@ -133,11 +124,7 @@
IndexedDBDispatcherHost* dispatcher_host, int32 response_id)
: IndexedDBCallbacksBase(dispatcher_host, response_id) { }
- virtual void onSuccess(const WebKit::WebSerializedScriptValue& value) {
- dispatcher_host()->Send(
- new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
- response_id(), SerializedScriptValue(value)));
- }
+ virtual void onSuccess(const WebKit::WebSerializedScriptValue& value);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks);
« no previous file with comments | « chrome/browser/debugger/devtools_manager.cc ('k') | chrome/browser/in_process_webkit/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698