1// Copyright 2014 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 StorageClient_h 6#define StorageClient_h 7 8#include "core/storage/StorageArea.h" 9#include "wtf/PassOwnPtr.h" 10 11namespace blink { 12 13class StorageNamespace; 14 15class StorageClient { 16public: 17 virtual ~StorageClient() { } 18 19 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() = 0; 20 virtual bool canAccessStorage(LocalFrame*, StorageType) const = 0; 21}; 22 23} // namespace blink 24 25#endif // StorageClient_h 26