summaryrefslogtreecommitdiffstats
path: root/wsd/Storage.hpp
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2021-02-06 17:11:06 -0500
committerAshod Nakashian <Ashod@users.noreply.github.com>2021-02-09 10:45:37 -0500
commitbafcc982851e6e20684f08160504ebec71caa962 (patch)
treee18adfcc8bfd303099fc4758a35f8d5d9174a520 /wsd/Storage.hpp
parentwsd: refactor downloadStorageFileToLocal (diff)
downloadonline-bafcc982851e6e20684f08160504ebec71caa962.tar.gz
online-bafcc982851e6e20684f08160504ebec71caa962.zip
wsd: support FileUrl
Change-Id: I433b5f79956be9d8557df1a1f433a99d6ae10f65 Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Diffstat (limited to 'wsd/Storage.hpp')
-rw-r--r--wsd/Storage.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/wsd/Storage.hpp b/wsd/Storage.hpp
index 9ba7864776..632c2fb22a 100644
--- a/wsd/Storage.hpp
+++ b/wsd/Storage.hpp
@@ -398,6 +398,7 @@ public:
const std::string& getTemplateSaveAs() const { return _templateSaveAs; }
const std::string& getTemplateSource() const { return _templateSource; }
const std::string& getBreadcrumbDocName() const { return _breadcrumbDocName; }
+ const std::string& getFileUrl() const { return _fileUrl; }
bool getUserCanWrite() const { return _userCanWrite; }
std::string& getPostMessageOrigin() { return _postMessageOrigin; }
@@ -440,6 +441,8 @@ public:
std::string _templateSource;
/// User readable string of document name to show in UI, if present.
std::string _breadcrumbDocName;
+ /// The optional FileUrl, used to download the document if provided.
+ std::string _fileUrl;
/// If user accessing the file has write permission
bool _userCanWrite;
/// WOPI Post message property
@@ -543,6 +546,9 @@ private:
const Authorization& auth, const std::string& cookies);
private:
+ /// A URl provided by the WOPI host to use for GetFile.
+ std::string _fileUrl;
+
// Time spend in loading the file from storage
std::chrono::milliseconds _wopiLoadDuration;
std::chrono::milliseconds _wopiSaveDuration;