summaryrefslogtreecommitdiff
path: root/chromium/content/child/storage_util.h
blob: e6f51a90c084de019089cb8e5de1bef040ee0432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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.

#ifndef CONTENT_CHILD_STORAGE_UTIL_H_
#define CONTENT_CHILD_STORAGE_UTIL_H_

class GURL;

namespace blink {
class WebSecurityOrigin;
}  // namespace blink

namespace content {

// Storage APIs rely on GURLs to identify the origin, with some special cases.
// New uses of this function should be avoided; url::Origin should be used
// instead.
// TODO(jsbell): Eliminate this. https://crbug.com/591482
GURL WebSecurityOriginToGURL(const blink::WebSecurityOrigin& origin);

}  // namespace content

#endif  // CONTENT_CHILD_STORAGE_UTIL_H_