android_webview
apps
ash
base
build
build_overrides
buildtools
cc
chrome
chromecast
chromeos
cloud_print
codelabs
components
content
app
app_shim_remote_cocoa
browser
child
common
gpu
ppapi_plugin
public
renderer
accessibility
java
media
mojo
pepper
service_worker
worker
BUILD.gn
DEPS
OWNERS
PRESUBMIT.py
PRESUBMIT_test.py
agent_scheduling_group.cc
agent_scheduling_group.h
blink_platform_audio_hardware_browsertest.cc
browser_exposed_renderer_interfaces.cc
browser_exposed_renderer_interfaces.h
browser_render_view_browsertest.cc
categorized_worker_pool.cc
categorized_worker_pool.h
categorized_worker_pool_unittest.cc
content_security_policy_util.cc
content_security_policy_util.h
content_security_policy_util_fuzzer.cc
content_security_policy_util_unittest.cc
discardable_memory_utils.cc
discardable_memory_utils.h
dom_automation_controller.cc
dom_automation_controller.h
dom_serializer_browsertest.cc
effective_connection_type_helper.cc
effective_connection_type_helper.h
frame_blame_context.cc
frame_blame_context.h
frame_owner_properties_converter.cc
frame_owner_properties_converter.h
gin_browsertest.cc
gpu_benchmarking_extension.cc
gpu_benchmarking_extension.h
in_process_renderer_thread.cc
in_process_renderer_thread.h
internal_document_state_data.cc
internal_document_state_data.h
mhtml_handle_writer.cc
mhtml_handle_writer.h
mock_agent_scheduling_group.cc
mock_agent_scheduling_group.h
navigation_client.cc
navigation_client.h
navigation_state.cc
navigation_state.h
net_info_helper.cc
net_info_helper.h
render_frame_impl.cc
render_frame_impl.h
render_frame_impl_browsertest.cc
render_frame_proxy.cc
render_frame_proxy.h
render_process.cc
render_process.h
render_process_impl.cc
render_process_impl.h
render_thread_impl.cc
render_thread_impl.h
render_thread_impl_browsertest.cc
render_thread_impl_discardable_memory_browsertest.cc
render_thread_impl_unittest.cc
render_view_browsertest.cc
render_view_browsertest_mac.mm
render_view_impl.cc
render_view_impl.h
render_widget_browsertest.cc
renderer_blink_platform_impl.cc
renderer_blink_platform_impl.h
renderer_main.cc
renderer_main_platform_delegate.h
renderer_main_platform_delegate_android.cc
renderer_main_platform_delegate_fuchsia.cc
renderer_main_platform_delegate_linux.cc
renderer_main_platform_delegate_mac.mm
renderer_main_platform_delegate_win.cc
sad_plugin.cc
sad_plugin.h
sandbox_mac_v2_unittest.mm
savable_resources_browsertest.cc
seccomp_sandbox_status_android.cc
seccomp_sandbox_status_android.h
skia_benchmarking_extension.cc
skia_benchmarking_extension.h
skia_benchmarking_extension_unittest.cc
stats_collection_controller.cc
stats_collection_controller.h
storage_util.cc
storage_util.h
stream_texture_host_android.cc
stream_texture_host_android.h
theme_helper_mac.h
theme_helper_mac.mm
top_level_blame_context.cc
top_level_blame_context.h
v8_value_converter_impl.cc
v8_value_converter_impl.h
v8_value_converter_impl_unittest.cc
variations_render_thread_observer.cc
variations_render_thread_observer.h
visual_state_browsertest.cc
web_ui_extension.cc
web_ui_extension.h
web_ui_extension_data.cc
web_ui_extension_data.h
webclipboard_impl_browsertest.cc
webgraphicscontext3d_provider_impl.cc
webgraphicscontext3d_provider_impl.h
services
shell
test
utility
web_test
zygote
BUILD.gn
DEPS
DIR_METADATA
OWNERS
README.md
content_resources.grd
dev_ui_content_resources.grd
courgette
crypto
dbus
device
docs
extensions
fuchsia
gin
google_apis
google_update
gpu
headless
infra
ios
ipc
jingle
media
mojo
native_client_sdk
net
pdf
ppapi
printing
remoting
rlz
sandbox
services
skia
sql
storage
styleguide
testing
third_party
tools
ui
url
weblayer
.clang-format
.clang-tidy
.eslintrc.js
.git-blame-ignore-revs
.gitattributes
.gitignore
.gn
.mailmap
.vpython
.vpython3
.yapfignore
AUTHORS
BUILD.gn
CODE_OF_CONDUCT.md
DEPS
DIR_METADATA
ENG_REVIEW_OWNERS
LICENSE
LICENSE.chromium_os
OWNERS
PRESUBMIT.py
PRESUBMIT_test.py
PRESUBMIT_test_mocks.py
README.md
WATCHLISTS
codereview.settings

BUG=777007 TBR=haraken@chromium.org Change-Id: Icaec9e002794aafd4902ad0573f89b737922a603 Reviewed-on: https://chromium-review.googlesource.com/732447 Reviewed-by: John Abd-El-Malek <jam@chromium.org> Commit-Queue: John Abd-El-Malek <jam@chromium.org> Cr-Commit-Position: refs/heads/master@{#510705}
25 lines
713 B
C++
25 lines
713 B
C++
// 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_
|