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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.cc

Issue 6677034: Add IndexedDB browser test that causes a crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove DISABLED marker on this new test Created 9 years, 9 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 | Annotate | Revision Log
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 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" 5 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/metrics/user_metrics.h" 10 #include "chrome/browser/metrics/user_metrics.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 *thread = BrowserThread::WEBKIT; 106 *thread = BrowserThread::WEBKIT;
107 } 107 }
108 108
109 bool IndexedDBDispatcherHost::OnMessageReceived(const IPC::Message& message, 109 bool IndexedDBDispatcherHost::OnMessageReceived(const IPC::Message& message,
110 bool* message_was_ok) { 110 bool* message_was_ok) {
111 if (IPC_MESSAGE_CLASS(message) != IndexedDBMsgStart) 111 if (IPC_MESSAGE_CLASS(message) != IndexedDBMsgStart)
112 return false; 112 return false;
113 113
114 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)); 114 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT));
115 115
116 // TODO(dgrogan): The page cycler test can crash here because
117 // database_dispatcher_host_ becomes invalid.
jorlow 2011/03/15 02:30:04 Add a bug number.
dgrogan 2011/03/16 22:00:12 Will do. I'm suddenly having a hard time reproduc
116 bool handled = 118 bool handled =
117 database_dispatcher_host_->OnMessageReceived(message, message_was_ok) || 119 database_dispatcher_host_->OnMessageReceived(message, message_was_ok) ||
118 index_dispatcher_host_->OnMessageReceived(message, message_was_ok) || 120 index_dispatcher_host_->OnMessageReceived(message, message_was_ok) ||
119 object_store_dispatcher_host_->OnMessageReceived( 121 object_store_dispatcher_host_->OnMessageReceived(
120 message, message_was_ok) || 122 message, message_was_ok) ||
121 cursor_dispatcher_host_->OnMessageReceived(message, message_was_ok) || 123 cursor_dispatcher_host_->OnMessageReceived(message, message_was_ok) ||
122 transaction_dispatcher_host_->OnMessageReceived(message, message_was_ok); 124 transaction_dispatcher_host_->OnMessageReceived(message, message_was_ok);
123 125
124 if (!handled) { 126 if (!handled) {
125 handled = true; 127 handled = true;
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 if (!idb_transaction) 1048 if (!idb_transaction)
1047 return; 1049 return;
1048 1050
1049 idb_transaction->didCompleteTaskEvents(); 1051 idb_transaction->didCompleteTaskEvents();
1050 } 1052 }
1051 1053
1052 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed( 1054 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed(
1053 int32 object_id) { 1055 int32 object_id) {
1054 parent_->DestroyObject(&map_, object_id); 1056 parent_->DestroyObject(&map_, object_id);
1055 } 1057 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698