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

Side by Side Diff: content/browser/dom_storage/dom_storage_database_adapter.h

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
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 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_
7 7
8 // Database interface used by DOMStorageArea. Abstracts the differences between 8 // Database interface used by DOMStorageArea. Abstracts the differences between
9 // the per-origin DOMStorageDatabases for localStorage and 9 // the per-origin DOMStorageDatabases for localStorage and
10 // SessionStorageDatabase which stores multiple origins. 10 // SessionStorageDatabase which stores multiple origins.
11 11
12 #include <string>
13
12 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
13 #include "content/common/dom_storage/dom_storage_types.h" 15 #include "content/common/dom_storage/dom_storage_types.h"
14 16
17 namespace base {
18 namespace trace_event {
19 class ProcessMemoryDump;
20 }
21 }
22
15 namespace content { 23 namespace content {
16 24
17 class CONTENT_EXPORT DOMStorageDatabaseAdapter { 25 class CONTENT_EXPORT DOMStorageDatabaseAdapter {
18 public: 26 public:
19 virtual ~DOMStorageDatabaseAdapter() {} 27 virtual ~DOMStorageDatabaseAdapter() {}
20 virtual void ReadAllValues(DOMStorageValuesMap* result) = 0; 28 virtual void ReadAllValues(DOMStorageValuesMap* result) = 0;
21 virtual bool CommitChanges( 29 virtual bool CommitChanges(
22 bool clear_all_first, const DOMStorageValuesMap& changes) = 0; 30 bool clear_all_first, const DOMStorageValuesMap& changes) = 0;
23 virtual void DeleteFiles() {} 31 virtual void DeleteFiles() {}
24 virtual void Reset() {} 32 virtual void Reset() {}
33 // Adds memory statistics to |pmd| object for tracing.
34 virtual void ReportMemoryUsage(base::trace_event::ProcessMemoryDump* pmd,
35 const std::string& name) {}
25 }; 36 };
26 37
27 } // namespace content 38 } // namespace content
28 39
29 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_ 40 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_database.cc ('k') | content/browser/dom_storage/local_storage_database_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698