• Mohammad Refaat's avatar
    Reland/Fix] Convert SystemCookieStore to Async. · 41032806
    Mohammad Refaat authored
    Reverted because it broke Cronet tests, the reason was CookieStoreIOSClient
    used to get IO Taskrunner is not initialized on Cronet Initialization.
    
    [NEW]
    * Create CronetCookieStoreIOSClient and set it up with Cronet Network IO
     TaskRunner
    * In Cronet initialization Set CookieStoreClient to CronetCookieStoreIOSClient.
    
    [OLD]
    * Converts SystemCookieStore to Async
    * Add Async functions to NSHTTPSystemCookieStore and keep the synchronous
    functions.
    * Move creation time management to systemCookieStore.
    * Update cookie_store_ios_presistent_unittest &
    cookie_store_ios_unittests to account for SystemCookieStore changes
    * (As CookieStoreIOS is using systemCookieStore internally).
    
    Another CL is in progress to add WKSystemCookieStore & unit_tests for
    systemCookieStore (to handle async methods) with template for both
    NSHTTP & WK systemCookieStore.
    
    Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
    Change-Id: I5c56a7b88868ad24d34dd7109273f2cdc5880d91
    Reviewed-on: https://chromium-review.googlesource.com/704014
    Commit-Queue: Matt Menke <mmenke@chromium.org>
    Commit-Queue: Mohammad Refaat <mrefaat@chromium.org>
    Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
    Reviewed-by: default avatarAndrei Kapishnikov <kapishnikov@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#506962}
    41032806
cookie_store_ios.mm 30.1 KB