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

Side by Side Diff: webkit/dom_storage/session_storage_database_adapter.h

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. Created 8 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
(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_SESSION_STORAGE_DATABASE_ADAPTER_H_
6 #define WEBKIT_DOM_STORAGE_SESSION_STORAGE_DATABASE_ADAPTER_H_
7 #pragma once
8
9 #include "base/memory/ref_counted.h"
10 #include "googleurl/src/gurl.h"
11 #include "webkit/dom_storage/dom_storage_database_adapter.h"
12
13 namespace dom_storage {
14
15 class SessionStorageDatabase;
16
17 class SessionStorageDatabaseAdapter : public DomStorageDatabaseAdapter {
18 public:
19 SessionStorageDatabaseAdapter(SessionStorageDatabase* db,
20 int64 namespace_id,
21 const GURL& origin);
22 virtual ~SessionStorageDatabaseAdapter();
23 virtual void ReadAllValues(ValuesMap* result) OVERRIDE;
24 virtual bool CommitChanges(bool clear_all_first,
25 const ValuesMap& changes) OVERRIDE;
26 private:
27 scoped_refptr<SessionStorageDatabase> db_;
28 int64 namespace_id_;
29 GURL origin_;
30
31 DISALLOW_COPY_AND_ASSIGN(SessionStorageDatabaseAdapter);
32 };
33
34 } // namespace dom_storage
35
36 #endif // WEBKIT_DOM_STORAGE_SESSION_STORAGE_DATABASE_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698