OLD | NEW |
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/leveldb/leveldb_transaction.h" | 5 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "content/browser/indexed_db/indexed_db_tracing.h" | 11 #include "content/browser/indexed_db/indexed_db_tracing.h" |
12 #include "content/browser/indexed_db/leveldb/leveldb_database.h" | 12 #include "content/browser/indexed_db/leveldb/leveldb_database.h" |
13 #include "content/browser/indexed_db/leveldb/leveldb_write_batch.h" | 13 #include "content/browser/indexed_db/leveldb/leveldb_write_batch.h" |
14 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 14 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
15 | 15 |
16 using base::StringPiece; | 16 using base::StringPiece; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 487 |
488 leveldb::Status s = db_->Write(*write_batch_); | 488 leveldb::Status s = db_->Write(*write_batch_); |
489 if (s.ok()) { | 489 if (s.ok()) { |
490 finished_ = true; | 490 finished_ = true; |
491 write_batch_->Clear(); | 491 write_batch_->Clear(); |
492 } | 492 } |
493 return s; | 493 return s; |
494 } | 494 } |
495 | 495 |
496 } // namespace content | 496 } // namespace content |
OLD | NEW |