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

Side by Side Diff: trunk/src/content/browser/indexed_db/leveldb/leveldb_database.cc

Issue 216433007: Revert 260147 "Handling LevelDB errors encountered after open." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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) 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_database.h" 5 #include "content/browser/indexed_db/leveldb/leveldb_database.h"
6 6
7 #include <cerrno> 7 #include <cerrno>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 return comparator_; 452 return comparator_;
453 } 453 }
454 454
455 void LevelDBDatabase::Compact(const base::StringPiece& start, 455 void LevelDBDatabase::Compact(const base::StringPiece& start,
456 const base::StringPiece& stop) { 456 const base::StringPiece& stop) {
457 const leveldb::Slice start_slice = MakeSlice(start); 457 const leveldb::Slice start_slice = MakeSlice(start);
458 const leveldb::Slice stop_slice = MakeSlice(stop); 458 const leveldb::Slice stop_slice = MakeSlice(stop);
459 db_->CompactRange(&start_slice, &stop_slice); 459 db_->CompactRange(&start_slice, &stop_slice);
460 } 460 }
461 461
462 void LevelDBDatabase::CompactAll() { db_->CompactRange(NULL, NULL); }
463
464 } // namespace content 462 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/browser/indexed_db/leveldb/leveldb_database.h ('k') | trunk/src/content/test/data/indexeddb/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698