Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_ | |
| 6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 // Database interface used by DomStorageArea. Abstracts the differences between | |
| 10 // the per-origin DomStorageDatabases for localStorage and | |
| 11 // SessionStorageDatabase which stores multiple origins. | |
| 12 | |
| 13 #include "webkit/dom_storage/dom_storage_types.h" | |
| 14 | |
| 15 namespace dom_storage { | |
| 16 | |
| 17 class DomStorageDatabaseAdapter { | |
| 18 public: | |
| 19 DomStorageDatabaseAdapter(); | |
|
michaeln
2012/06/15 19:02:43
is this ctor needed?
marja
2012/06/19 10:43:30
No if DISALLOW_.. is removed. Removed the DISALLOW
| |
| 20 virtual ~DomStorageDatabaseAdapter(); | |
|
michaeln
2012/06/15 19:02:43
would an emtpy method body work here? if so we may
marja
2012/06/19 10:43:30
Done.
| |
| 21 virtual void ReadAllValues(ValuesMap* result) = 0; | |
| 22 virtual bool CommitChanges( | |
| 23 bool clear_all_first, const ValuesMap& changes) = 0; | |
| 24 virtual void DeleteFiles() { } | |
|
michaeln
2012/06/15 19:02:43
nit: no space required in {}
marja
2012/06/19 10:43:30
Done.
| |
| 25 virtual void Reset() { } | |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(DomStorageDatabaseAdapter); | |
|
michaeln
2012/06/15 19:02:43
is this meaningful on an abstract class?
marja
2012/06/19 10:43:30
Removed.
| |
| 28 }; | |
| 29 | |
| 30 } // namespace dom_storage | |
| 31 | |
| 32 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_ | |
| OLD | NEW |