Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

[Download] Fix and complete Download API #352

Merged
merged 1 commit into from Aug 18, 2014

Conversation

rtxm
Copy link
Contributor

@rtxm rtxm commented Jul 11, 2014

Refactored Filesytem and Download API to share code
related to virtual roots.
Pass TCT tests.
Fix example.

BUG=XWALK-1070

@crosswalk-trybot
Copy link

Testing patch series with aa18873 as its head.

Bot Status
tizen-extensions-crosswalk IVI [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk IVI/builds/233)
tizen-extensions-crosswalk Common [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk Common/builds/243)

@rtxm
Copy link
Contributor Author

rtxm commented Jul 11, 2014

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.

@crosswalk-trybot
Copy link

Testing patch series with d210cfe as its head.

Bot Status
tizen-extensions-crosswalk Common [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk Common/builds/250)
tizen-extensions-crosswalk IVI [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk IVI/builds/240)

@rtxm
Copy link
Contributor Author

rtxm commented Jul 16, 2014

Feedback welcome.

#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <cassert>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

order please

@rtxm
Copy link
Contributor Author

rtxm commented Jul 17, 2014

Thank you for your feedback Deqing, I'm going to fix that now.

@crosswalk-trybot
Copy link

Testing patch series with 7bb1d94 as its head.

Bot Status
tizen-extensions-crosswalk Common [FAILED 💔](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk Common/builds/256)
tizen-extensions-crosswalk IVI [FAILED 💔](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk IVI/builds/246)

@crosswalk-trybot
Copy link

Testing patch series with 9474cd1 as its head.

Bot Status
tizen-extensions-crosswalk Common [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk Common/builds/257)
tizen-extensions-crosswalk IVI [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk IVI/builds/247)

return retval;
}

bool VirtualFS::GetStorageByLabel(std::string label, Storage& storage) {
Copy link

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

@deqing
Copy link
Contributor

deqing commented Jul 23, 2014

LGTM after fix the indent comment. Thanks for the rework.

const std::string& fullpath = "");

std::string type() const;
std::string state() const;
Copy link

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

@crosswalk-trybot
Copy link

Testing patch series with 542b43a as its head.

Bot Status
tizen-extensions-crosswalk IVI [FAILED 💔](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk IVI/builds/261)
tizen-extensions-crosswalk Common [FAILED 💔](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk Common/builds/271)

@crosswalk-trybot
Copy link

Testing patch series with a49351e as its head.

Bot Status
tizen-extensions-crosswalk IVI [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk IVI/builds/262)
tizen-extensions-crosswalk Common [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk Common/builds/272)

@halton
Copy link

halton commented Aug 6, 2014

hi @rtxm please ping us when you're ready for a review. And please rebase your code to resolve the conflict.

@clecou
Copy link
Contributor

clecou commented Aug 6, 2014

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 ?

@halton
Copy link

halton commented Aug 6, 2014

@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.

@crosswalk-trybot
Copy link

Testing patch series with eurogiciel-oss/tizen-extensions-crosswalk@dcd2e7f as its head.

Bot Status
tizen-extensions-crosswalk IVI [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk IVI/builds/270)
tizen-extensions-crosswalk Common [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk Common/builds/280)

@clecou
Copy link
Contributor

clecou commented Aug 12, 2014

@halton, ping ?

std::string GetType() const;
std::string GetState() const;
int GetId() const { return id_; }
const std::string& GetFullPath() const { return fullpath_; }
Copy link

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()

@crosswalk-trybot
Copy link

Testing patch series with eurogiciel-oss/tizen-extensions-crosswalk@dd921e7 as its head.

Bot Status
tizen-extensions-crosswalk IVI [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk IVI/builds/276)
tizen-extensions-crosswalk Common [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk Common/builds/286)

@clecou
Copy link
Contributor

clecou commented Aug 14, 2014

@halton, @deqing, thanks for the review.
Please find a new patch taking into consideration all of your remarks except ones about static members and const methods (related are in previous patch review).


} // namespace


Copy link

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
@crosswalk-trybot
Copy link

Testing patch series with eurogiciel-oss/tizen-extensions-crosswalk@bcee207 as its head.

Bot Status
tizen-extensions-crosswalk IVI [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk IVI/builds/278)
tizen-extensions-crosswalk Common [SUCCESS 💚](https://build.crosswalk-project.org/try/builders/tizen-extensions-crosswalk Common/builds/288)

@clecou
Copy link
Contributor

clecou commented Aug 18, 2014

@halton, with the vfs_const namespace.

@halton
Copy link

halton commented Aug 18, 2014

lgtm now, will merge. Thanks for your patient reworking.

halton pushed a commit that referenced this pull request Aug 18, 2014
[Download] Fix and complete Download API
@halton halton merged commit b2b6999 into crosswalk-project:master Aug 18, 2014
@clecou clecou deleted the XWALK-1070 branch September 2, 2014 17:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants