| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| module content.mojom; |
| |
| import "content/common/leveldb_wrapper.mojom"; |
| import "url/mojom/origin.mojom"; |
| |
| // Represents a namespace for Session Storage and allows data access and |
| // cloning. This is implemented by the browser process. |
| interface SessionStorageNamespace { |
| OpenArea(url.mojom.Origin origin, |
| associated LevelDBWrapper& database); |
| // Clones this namespace the new given namespace. Used before navigating to |
| // a new frame which would be given this session storage namespace. |
| Clone(string clone_to_namespace); |
| }; |
| |
| // Returns services related to the current storage partition. This is |
| // implemented by the browser process. |
| interface StoragePartitionService { |
| OpenLocalStorage(url.mojom.Origin origin, |
| LevelDBWrapper& database); |
| OpenSessionStorage(string namespace_id, |
| SessionStorageNamespace& session_namespace); |
| }; |