DescriptionInjecting an NSHTTPCookieStorage dependency into CookieStoreIOS
In Chrome we plan to use a subclass of NSHTTPCookieStorage as we
plan to implement an in-memory only cookie store (as opposed to the
default implementation in NSHTTPCookieStorage which passes it
to CFNetwork).
I briefly considered doing a subclass of CookieStore that
has an NSHTTPCookieStorage as the backend. But I ended up
re-implementing a lot of the logic from CookieStoreIOS
(such as the conversion between a canonical cookie and an
NSHTTPCookie)
Injecting this dependency will avoid unnecessary code duplication.
BUG=542866
Committed: https://crrev.com/1ae3c3a3b26dc42489c0209bbf8ab12738094857
Cr-Commit-Position: refs/heads/master@{#357603}
Patch Set 1 #
Total comments: 5
Patch Set 2 : y #
Total comments: 4
Patch Set 3 : y #
Messages
Total messages: 15 (6 generated)
|