summaryrefslogtreecommitdiff
path: root/chromium/content/renderer/storage_util.h
blob: 451550cdec5822d69e13905b58a5089a6fda23f8 (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_RENDERER_STORAGE_UTIL_H_
#define CONTENT_RENDERER_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_RENDERER_STORAGE_UTIL_H_