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

Side by Side Diff: content/browser/dom_storage/local_storage_database_adapter.cc

Issue 2548063002: [tracing] Show the local storage databases under dom_storage (Closed)
Patch Set: Add IsOpen. Created 4 years 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 | « content/browser/dom_storage/local_storage_database_adapter.h ('k') | 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/dom_storage/local_storage_database_adapter.h" 5 #include "content/browser/dom_storage/local_storage_database_adapter.h"
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "content/browser/dom_storage/dom_storage_database.h" 8 #include "content/browser/dom_storage/dom_storage_database.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 void LocalStorageDatabaseAdapter::DeleteFiles() { 28 void LocalStorageDatabaseAdapter::DeleteFiles() {
29 sql::Connection::Delete(db_->file_path()); 29 sql::Connection::Delete(db_->file_path());
30 } 30 }
31 31
32 void LocalStorageDatabaseAdapter::Reset() { 32 void LocalStorageDatabaseAdapter::Reset() {
33 db_.reset(new DOMStorageDatabase(db_->file_path())); 33 db_.reset(new DOMStorageDatabase(db_->file_path()));
34 } 34 }
35 35
36 void LocalStorageDatabaseAdapter::ReportMemoryUsage(
37 base::trace_event::ProcessMemoryDump* pmd,
38 const std::string& name) {
39 db_->ReportMemoryUsage(pmd, name);
40 }
41
36 LocalStorageDatabaseAdapter::LocalStorageDatabaseAdapter() 42 LocalStorageDatabaseAdapter::LocalStorageDatabaseAdapter()
37 : db_(new DOMStorageDatabase()) { 43 : db_(new DOMStorageDatabase()) {
38 } 44 }
39 45
40 } // namespace content 46 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/dom_storage/local_storage_database_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698