Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: content/child/storage_util.h

Issue 1810193002: Fix effective Origin URLs for IDB + Cache for file:/// pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Factor out origin->GURL conversion helper Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/indexed_db/webidbfactory_impl.cc ('k') | content/child/storage_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/storage_util.h
diff --git a/content/child/storage_util.h b/content/child/storage_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..e6f51a90c084de019089cb8e5de1bef040ee0432
--- /dev/null
+++ b/content/child/storage_util.h
@@ -0,0 +1,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_
« no previous file with comments | « content/child/indexed_db/webidbfactory_impl.cc ('k') | content/child/storage_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698