#ifndef CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
#define CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
#include <stdint.h>
#include <map>
#include <string>
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "content/public/browser/storage_partition_config.h"
namespace content {
class SessionStorageNamespace
: public base::RefCountedThreadSafe<SessionStorageNamespace> {
public:
virtual const std::string& id() = 0;
virtual void SetShouldPersist(bool should_persist) = 0;
virtual bool should_persist() = 0;
protected:
friend class base::RefCountedThreadSafe<SessionStorageNamespace>;
virtual ~SessionStorageNamespace() {}
};
typedef std::map<StoragePartitionConfig, scoped_refptr<SessionStorageNamespace>>
SessionStorageNamespaceMap;
CONTENT_EXPORT SessionStorageNamespaceMap
CreateMapWithDefaultSessionStorageNamespace(
BrowserContext* browser_context,
scoped_refptr<SessionStorageNamespace> session_storage_namespace);
}
#endif