diff options
author | kuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 18:03:32 +0000 |
---|---|---|
committer | kuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 18:03:32 +0000 |
commit | 2c90e20513d53762058a19722e909c8a75c2045b (patch) | |
tree | 060692dcf40d6d8d80aaddb8951b34222a5bb618 /chrome/common/url_constants.h | |
parent | cf58096c0501d5749d47ea0e3f819d3107228da1 (diff) | |
download | chromium_src-2c90e20513d53762058a19722e909c8a75c2045b.zip chromium_src-2c90e20513d53762058a19722e909c8a75c2045b.tar.gz chromium_src-2c90e20513d53762058a19722e909c8a75c2045b.tar.bz2 |
cros gdata: implement protocol handler for viewing gdata files
- this re-implements the previous implementation of chrome://gdata
- create new scheme gdata:// to view contents of gdata files
- url has format gdata://viewfile/<gdata_resource_id>/<gdata_file_name>
- add gdata protocol handler as a hostname filter for url requests during
initialization of GDataFileSystem, and remove it in destructor
- reading of file contents is done in streaming manner, without the need to
store entire file contents in memory before responding to url request
- this also mitigates (if not fixes) the security risk imposed by chrome://
scheme
BUG=chromium-os:28510,chromium-os:29238
TEST=make sure google docs acct has a text file, open file manager, expand Google Docs, double-click on the txt file, new tab should open with file contents
Review URL: https://chromiumcodereview.appspot.com/10038039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/url_constants.h')
-rw-r--r-- | chrome/common/url_constants.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/common/url_constants.h b/chrome/common/url_constants.h index 4ee5682d..ddb5dfc 100644 --- a/chrome/common/url_constants.h +++ b/chrome/common/url_constants.h @@ -195,7 +195,6 @@ extern const char kChromeUIActiveDownloadsHost[]; extern const char kChromeUIChooseMobileNetworkHost[]; extern const char kChromeUICryptohomeHost[]; extern const char kChromeUIDiscardsHost[]; -extern const char kChromeUIGDataHost[]; extern const char kChromeUIIdleLogoutDialogHost[]; extern const char kChromeUIImageBurnerHost[]; extern const char kChromeUIKeyboardOverlayHost[]; @@ -344,6 +343,9 @@ extern int kNumberOfChromeDebugURLs; // Canonical schemes you can use as input to GURL.SchemeIs(). extern const char kExtensionScheme[]; +#if defined(OS_CHROMEOS) +extern const char kGDataScheme[]; +#endif // defined(OS_CHROMEOS) // Call near the beginning of startup to register Chrome's internal URLs that // should be parsed as "standard" with the googleurl library. |