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

Side by Side Diff: content/public/browser/session_storage_namespace.h

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Draft: associate with session restore. Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 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 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_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
6 #define CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ 6 #define CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // This is a ref-counted class that represents a SessionStorageNamespace. 13 // This is a ref-counted class that represents a SessionStorageNamespace.
14 // On destruction it ensures that the storage namespace is destroyed. 14 // On destruction it ensures that the storage namespace is destroyed.
15 // NOTE: That if we're shutting down, we don't strictly need to do this, but 15 // NOTE: That if we're shutting down, we don't strictly need to do this, but
16 // it keeps valgrind happy. 16 // it keeps valgrind happy.
17 class SessionStorageNamespace 17 class SessionStorageNamespace
michaeln 2012/05/30 01:29:19 What if there were two different methods to manufa
marja 2012/05/31 14:41:34 Done.
18 : public base::RefCountedThreadSafe<SessionStorageNamespace> { 18 : public base::RefCountedThreadSafe<SessionStorageNamespace> {
19 public:
20 virtual int64 id() const = 0;
19 protected: 21 protected:
20 friend class base::RefCountedThreadSafe<SessionStorageNamespace>; 22 friend class base::RefCountedThreadSafe<SessionStorageNamespace>;
21 virtual ~SessionStorageNamespace() {} 23 virtual ~SessionStorageNamespace() {}
22 }; 24 };
23 25
24 } // namespace content 26 } // namespace content
25 27
26 #endif // CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ 28 #endif // CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698