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

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

Issue 2923463002: Don't move raw pointers in content (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_transaction.h" 5 #include "content/browser/indexed_db/indexed_db_transaction.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 IndexedDBTransaction::IndexedDBTransaction( 107 IndexedDBTransaction::IndexedDBTransaction(
108 int64_t id, 108 int64_t id,
109 IndexedDBConnection* connection, 109 IndexedDBConnection* connection,
110 const std::set<int64_t>& object_store_ids, 110 const std::set<int64_t>& object_store_ids,
111 blink::WebIDBTransactionMode mode, 111 blink::WebIDBTransactionMode mode,
112 IndexedDBBackingStore::Transaction* backing_store_transaction) 112 IndexedDBBackingStore::Transaction* backing_store_transaction)
113 : id_(id), 113 : id_(id),
114 object_store_ids_(object_store_ids), 114 object_store_ids_(object_store_ids),
115 mode_(mode), 115 mode_(mode),
116 connection_(std::move(connection)), 116 connection_(connection),
117 transaction_(backing_store_transaction), 117 transaction_(backing_store_transaction),
118 ptr_factory_(this) { 118 ptr_factory_(this) {
119 IDB_ASYNC_TRACE_BEGIN("IndexedDBTransaction::lifetime", this); 119 IDB_ASYNC_TRACE_BEGIN("IndexedDBTransaction::lifetime", this);
120 callbacks_ = connection_->callbacks(); 120 callbacks_ = connection_->callbacks();
121 database_ = connection_->database(); 121 database_ = connection_->database();
122 122
123 diagnostics_.tasks_scheduled = 0; 123 diagnostics_.tasks_scheduled = 0;
124 diagnostics_.tasks_completed = 0; 124 diagnostics_.tasks_completed = 0;
125 diagnostics_.creation_time = base::Time::Now(); 125 diagnostics_.creation_time = base::Time::Now();
126 } 126 }
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 586
587 ::indexed_db::mojom::ObserverChangesPtr* 587 ::indexed_db::mojom::ObserverChangesPtr*
588 IndexedDBTransaction::GetPendingChangesForConnection(int32_t connection_id) { 588 IndexedDBTransaction::GetPendingChangesForConnection(int32_t connection_id) {
589 auto it = connection_changes_map_.find(connection_id); 589 auto it = connection_changes_map_.find(connection_id);
590 if (it != connection_changes_map_.end()) 590 if (it != connection_changes_map_.end())
591 return &it->second; 591 return &it->second;
592 return nullptr; 592 return nullptr;
593 } 593 }
594 594
595 } // namespace content 595 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698