Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Issue 21075004: Clean up PnaclTranslationCache interface (Closed)

Created:
7 years, 4 months ago by Derek Schuff
Modified:
7 years, 4 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Clean up PnaclTranslationCache interface This CL augments PnaclTranslationCache's public interface into a state where it can be used by the PnaclHost. In particular, it adds GetKey which generates a cache key from a cache_info object, and it switches to using net::DrainableIOBuffer to transfer nexe data, which both simplifies the implementation and reduces the number of times the data needs to be copied. R=jvoung@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=3372 TEST= unit_tests --gtest_filter=PnaclTranslationCache* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214755 Reverted in http://src.chromium.org/viewvc/chrome?view=rev&revision=214762 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214859

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 12

Patch Set 4 : review #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : handle null base::Time explicitly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -93 lines) Patch
M chrome/browser/nacl_host/pnacl_translation_cache.h View 1 2 3 2 chunks +23 lines, -8 lines 0 comments Download
M chrome/browser/nacl_host/pnacl_translation_cache.cc View 1 2 3 4 5 13 chunks +121 lines, -71 lines 0 comments Download
M chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc View 1 2 3 4 5 7 chunks +117 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Derek Schuff
oops, code review will be faster if i send the mail
7 years, 4 months ago (2013-07-30 21:50:41 UTC) #1
jvoung (off chromium)
https://codereview.chromium.org/21075004/diff/4001/chrome/browser/nacl_host/pnacl_translation_cache.cc File chrome/browser/nacl_host/pnacl_translation_cache.cc (right): https://codereview.chromium.org/21075004/diff/4001/chrome/browser/nacl_host/pnacl_translation_cache.cc#newcode359 chrome/browser/nacl_host/pnacl_translation_cache.cc:359: StoreNexe(key, nexe_data, CompletionCallback()); Does this version of StoreNexe need ...
7 years, 4 months ago (2013-07-30 22:51:39 UTC) #2
Derek Schuff
https://codereview.chromium.org/21075004/diff/4001/chrome/browser/nacl_host/pnacl_translation_cache.cc File chrome/browser/nacl_host/pnacl_translation_cache.cc (right): https://codereview.chromium.org/21075004/diff/4001/chrome/browser/nacl_host/pnacl_translation_cache.cc#newcode359 chrome/browser/nacl_host/pnacl_translation_cache.cc:359: StoreNexe(key, nexe_data, CompletionCallback()); On 2013/07/30 22:51:39, jvoung (cr) wrote: ...
7 years, 4 months ago (2013-07-31 00:04:16 UTC) #3
jvoung (off chromium)
LGTM https://codereview.chromium.org/21075004/diff/16001/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc File chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc (right): https://codereview.chromium.org/21075004/diff/16001/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc#newcode140 chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc:140: PnaclTranslationCache::GetKey(info)); Could also check that other schemes like ...
7 years, 4 months ago (2013-07-31 00:58:38 UTC) #4
Derek Schuff
https://codereview.chromium.org/21075004/diff/16001/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc File chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc (right): https://codereview.chromium.org/21075004/diff/16001/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc#newcode140 chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc:140: PnaclTranslationCache::GetKey(info)); On 2013/07/31 00:58:38, jvoung (cr) wrote: > Could ...
7 years, 4 months ago (2013-07-31 05:38:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dschuff@chromium.org/21075004/22001
7 years, 4 months ago (2013-07-31 05:43:41 UTC) #6
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=3075
7 years, 4 months ago (2013-07-31 06:13:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dschuff@chromium.org/21075004/22001
7 years, 4 months ago (2013-07-31 15:18:27 UTC) #8
commit-bot: I haz the power
Change committed as 214755
7 years, 4 months ago (2013-07-31 16:17:06 UTC) #9
Derek Schuff
On 2013/07/31 16:17:06, I haz the power (commit-bot) wrote: > Change committed as 214755 This ...
7 years, 4 months ago (2013-07-31 18:12:12 UTC) #10
Derek Schuff
handling null base::Time explicitly now, PTAL
7 years, 4 months ago (2013-07-31 18:24:39 UTC) #11
jvoung (off chromium)
On 2013/07/31 18:24:39, Derek Schuff wrote: > handling null base::Time explicitly now, PTAL LGTM
7 years, 4 months ago (2013-07-31 18:27:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dschuff@chromium.org/21075004/35002
7 years, 4 months ago (2013-07-31 18:29:17 UTC) #13
commit-bot: I haz the power
7 years, 4 months ago (2013-07-31 23:24:20 UTC) #14
Message was sent while issue was closed.
Change committed as 214859

Powered by Google App Engine
This is Rietveld 408576698