Thanks for comments!
On 2012/11/20 20:00:09, boliu wrote:
> nit: Let's do better than existing code. I think the the 4 cache flags
are
> mutually exclusive, so can we make sure only one of them is set?
Looking at this
> code, I think it can work. See SetOnlyAllowLoadFromCache above.
Done. BTW, there was an error in SetOnlyAllowLoadFromCache, as AND-ing
flags effectively produces zero.
On 2012/11/20 20:00:09, boliu wrote:
> Can you make sure the flags above are interacting correctly with this
which also
> sets flags?
Added a test. In fact, setting cache mode doesn't have any effect when
network loads are blocked (I verified with the legacy WebView for sure),
so I moved the new code under the else branch of network loads blocking.
On 2012/11/20 20:00:09, boliu wrote:
> nit: Just write this comment once above the class?
Done.
On 2012/11/20 20:00:09, boliu wrote:
> nit: All the methods are called from IO thread, and is stated above in
the class
> comments. Can we remove the individual ones on the methods?
Done. I rephrased the class comment to avoid excessive mentioning of "IO
thread".
https://codereview.chromium.org/11419093/