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

Side by Side Diff: content/browser/indexed_db/indexed_db_callbacks.cc

Issue 2386683003: IndexedDB: Ignore open/delete requests from terminated renderers. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
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 #include "content/browser/indexed_db/indexed_db_callbacks.h" 5 #include "content/browser/indexed_db/indexed_db_callbacks.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <utility> 10 #include <utility>
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 DCHECK_EQ(kNoTransaction, host_transaction_id_); 597 DCHECK_EQ(kNoTransaction, host_transaction_id_);
598 DCHECK_EQ(kNoDatabase, ipc_database_id_); 598 DCHECK_EQ(kNoDatabase, ipc_database_id_);
599 DCHECK_EQ(kNoDatabaseCallbacks, ipc_database_callbacks_id_); 599 DCHECK_EQ(kNoDatabaseCallbacks, ipc_database_callbacks_id_);
600 DCHECK_EQ(blink::WebIDBDataLossNone, data_loss_); 600 DCHECK_EQ(blink::WebIDBDataLossNone, data_loss_);
601 601
602 dispatcher_host_->Send(new IndexedDBMsg_CallbacksSuccessUndefined( 602 dispatcher_host_->Send(new IndexedDBMsg_CallbacksSuccessUndefined(
603 ipc_thread_id_, ipc_callbacks_id_)); 603 ipc_thread_id_, ipc_callbacks_id_));
604 dispatcher_host_ = NULL; 604 dispatcher_host_ = NULL;
605 } 605 }
606 606
607 bool IndexedDBCallbacks::IsValid() const {
608 return dispatcher_host_->is_open();
cmumford 2016/10/03 18:39:26 All the other methods have: DCHECK(dispatcher_h
jsbell 2016/10/03 19:28:37 Done.
609 }
610
607 void IndexedDBCallbacks::SetConnectionOpenStartTime( 611 void IndexedDBCallbacks::SetConnectionOpenStartTime(
608 const base::TimeTicks& start_time) { 612 const base::TimeTicks& start_time) {
609 connection_open_start_time_ = start_time; 613 connection_open_start_time_ = start_time;
610 } 614 }
611 615
612 } // namespace content 616 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698