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

Issue 16232011: Add PNaCl translation cache based on Chrome disk_cache (Closed)

Created:
7 years, 6 months ago by Derek Schuff
Modified:
7 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, native-client-reviews_googlegroups.com, gavinp+disk_chromium.org
Visibility:
Public.

Description

Add PNaCl translation cache based on Chrome disk_cache The current translation cache for Portable Native Client executables is visible to the user and implemented by the plugin, which is eventually going away. The new implementation will re-use existing cache code and be controlled by the browser rather than the plugin. This first CL implements a simple interface for the nacl host which hides the various stages of the disk_cache implementation. It only does stores; loads will be a future CL. R=jvoung@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=3372 TEST= unit_tests --gtest_filter=PNaClTranslationCacheTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203591

Patch Set 1 #

Patch Set 2 : fix win build, disable_nacl=1, clang build #

Total comments: 13

Patch Set 3 : reviews #

Patch Set 4 : #

Patch Set 5 : fix test type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -0 lines) Patch
A chrome/browser/nacl_host/pnacl_translation_cache.h View 1 2 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/browser/nacl_host/pnacl_translation_cache.cc View 1 2 3 1 chunk +322 lines, -0 lines 0 comments Download
A chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Derek Schuff
7 years, 6 months ago (2013-05-30 23:06:27 UTC) #1
jvoung (off chromium)
https://codereview.chromium.org/16232011/diff/15001/chrome/browser/nacl_host/pnacl_translation_cache.cc File chrome/browser/nacl_host/pnacl_translation_cache.cc (right): https://codereview.chromium.org/16232011/diff/15001/chrome/browser/nacl_host/pnacl_translation_cache.cc#newcode11 chrome/browser/nacl_host/pnacl_translation_cache.cc:11: #include "base/time.h" no need for base/time.h if you remove ...
7 years, 6 months ago (2013-05-31 01:12:14 UTC) #2
Derek Schuff
also removed the stuff from net/ for now so we don't need any extra OWNERS ...
7 years, 6 months ago (2013-05-31 23:15:31 UTC) #3
jvoung (off chromium)
LGTM https://codereview.chromium.org/16232011/diff/15001/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc File chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc (right): https://codereview.chromium.org/16232011/diff/15001/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc#newcode75 chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc:75: //EXPECT_EQ(0, cache_->Size()); On 2013/05/31 23:15:31, Derek Schuff wrote: ...
7 years, 6 months ago (2013-06-01 00:48:41 UTC) #4
Derek Schuff
On 2013/06/01 00:48:41, jvoung (cr) wrote: > LGTM > > https://codereview.chromium.org/16232011/diff/15001/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc > File chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc (right): ...
7 years, 6 months ago (2013-06-01 01:47:57 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/16232011/27001
7 years, 6 months ago (2013-06-01 01:48:12 UTC) #6
commit-bot: I haz the power
7 years, 6 months ago (2013-06-01 05:05:26 UTC) #7
Message was sent while issue was closed.
Change committed as 203591

Powered by Google App Engine
This is Rietveld 408576698