diff options
author | qinmin <qinmin@chromium.org> | 2014-11-25 19:02:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-26 03:03:21 +0000 |
commit | 120a15519703dfe8601596f1f436a322ea0a2aff (patch) | |
tree | 78ac7a415a86b465712808a2386e1a0d5ba6cd67 /url | |
parent | e674d6dc2fbadd946912426f49d71e3af8482e4a (diff) | |
download | chromium_src-120a15519703dfe8601596f1f436a322ea0a2aff.zip chromium_src-120a15519703dfe8601596f1f436a322ea0a2aff.tar.gz chromium_src-120a15519703dfe8601596f1f436a322ea0a2aff.tar.bz2 |
Support content scheme uri for Chrome on Android
Android uses content scheme to store files and ensure permission checks.
For example, the downloaded files are stored as content://downloads/all_downloads/123.
However, chrome currently cannot handle url requests for content uri.
As a result, chrome can save html pages to sdcard, but cannot open it.
This change adds the content scheme support for chrome on android.
BUG=433011
Review URL: https://codereview.chromium.org/739033003
Cr-Commit-Position: refs/heads/master@{#305772}
Diffstat (limited to 'url')
-rw-r--r-- | url/url_constants.cc | 1 | ||||
-rw-r--r-- | url/url_constants.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/url/url_constants.cc b/url/url_constants.cc index 9ef0e63..2dc1478 100644 --- a/url/url_constants.cc +++ b/url/url_constants.cc @@ -10,6 +10,7 @@ const char kAboutBlankURL[] = "about:blank"; const char kAboutScheme[] = "about"; const char kBlobScheme[] = "blob"; +const char kContentScheme[] = "content"; const char kDataScheme[] = "data"; const char kFileScheme[] = "file"; const char kFileSystemScheme[] = "filesystem"; diff --git a/url/url_constants.h b/url/url_constants.h index 3228bbb..c48dafc 100644 --- a/url/url_constants.h +++ b/url/url_constants.h @@ -13,6 +13,8 @@ URL_EXPORT extern const char kAboutBlankURL[]; URL_EXPORT extern const char kAboutScheme[]; URL_EXPORT extern const char kBlobScheme[]; +// The content scheme is specific to Android for identifying a stored file. +URL_EXPORT extern const char kContentScheme[]; URL_EXPORT extern const char kDataScheme[]; URL_EXPORT extern const char kFileScheme[]; URL_EXPORT extern const char kFileSystemScheme[]; |