[Download] Fix and complete Download API #352
Conversation
Testing patch series with aa18873 as its head.
|
To run the Download API on Tizen you need a fully functional download-provider service (behind the core CAPI). To achieve that, you may need to apply this patch https://review.tizen.org/gerrit/#/c/24123/ and/or refer to Tizen bugs https://bugs.tizen.org/jira/browse/TC-1409 and https://bugs.tizen.org/jira/browse/TC-1415. |
Testing patch series with d210cfe as its head.
|
Feedback welcome. |
#include <dirent.h> | ||
#include <sys/stat.h> | ||
#include <sys/types.h> | ||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
order please
Thank you for your feedback Deqing, I'm going to fix that now. |
Testing patch series with 7bb1d94 as its head.
|
Testing patch series with 9474cd1 as its head.
|
return retval; | ||
} | ||
|
||
bool VirtualFS::GetStorageByLabel(std::string label, Storage& storage) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::string label
-> const std::string& label
LGTM after fix the indent comment. Thanks for the rework. |
const std::string& fullpath = ""); | ||
|
||
std::string type() const; | ||
std::string state() const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above are not simple getter, so please rename them as GetType and GetState
Testing patch series with 542b43a as its head.
|
Testing patch series with a49351e as its head.
|
hi @rtxm please ping us when you're ready for a review. And please rebase your code to resolve the conflict. |
hi @halton , romuald (rtxm) doesn't work here anymore, that's why I sent a patch according to the latest review. Can you review it before rebasing the patch ? |
@clecou I'm sorry that I generally do not review code that even can not merge. Basically, conflict the merging means there are some changes needed for the rebasing, I need review again after rebasing. |
Testing patch series with eurogiciel-oss/tizen-extensions-crosswalk@dcd2e7f as its head.
|
@halton, ping ? |
std::string GetType() const; | ||
std::string GetState() const; | ||
int GetId() const { return id_; } | ||
const std::string& GetFullPath() const { return fullpath_; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit comment, as chromium does the simple getter normally name as member, which is GetId()
-> id()
, GetFullPath()
-> full_path()
Testing patch series with eurogiciel-oss/tizen-extensions-crosswalk@dd921e7 as its head.
|
|
||
} // namespace | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one empty line
Refactored Filesytem and Download API to share code related to virtual roots. Pass TCT tests. Fix example. BUG=XWALK-1070
Testing patch series with eurogiciel-oss/tizen-extensions-crosswalk@bcee207 as its head.
|
@halton, with the vfs_const namespace. |
lgtm now, will merge. Thanks for your patient reworking. |
[Download] Fix and complete Download API
Refactored Filesytem and Download API to share code
related to virtual roots.
Pass TCT tests.
Fix example.
BUG=XWALK-1070