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

Unified Diff: chromeos/printing/ppd_cache.cc

Issue 2958183002: Add sequencing comment to PpdCacheImpl. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/printing/ppd_cache.cc
diff --git a/chromeos/printing/ppd_cache.cc b/chromeos/printing/ppd_cache.cc
index 918b0e84cf9426a14b1565dab0dc7520354cf35a..25d08104a7f32fbc6e8cdceedd2918095902ca44 100644
--- a/chromeos/printing/ppd_cache.cc
+++ b/chromeos/printing/ppd_cache.cc
@@ -116,6 +116,11 @@ void StoreImpl(const base::FilePath& cache_dir,
}
}
+// Implementation of the PpdCache that uses two separate task runners for Store
+// and Fetch since the two operations have different priorities. It is okay
+// that Store and Fetch are not synchronized because we assume that we won't
+// overwrite a file that we're trying to read simultaneously. If this
+// assumption is invalidated, the sequencing will require revisiting.
Carlson 2017/06/29 18:47:09 The more I think about it, the more I'm convinced
skau 2017/06/30 20:55:49 Okay. It's updated. Really, what we're saying is
class PpdCacheImpl : public PpdCache {
public:
explicit PpdCacheImpl(const base::FilePath& cache_base_dir)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698