import android.content.SharedPreferences;
import org.chromium.content.browser.ContentViewStatics;
+import org.chromium.net.DefaultAndroidKeyStore;
/**
* Java side of the Browser Context: contains all the java side objects needed to host one
* Note that due to running in single process mode, and limitations on renderer process only
* being able to use a single browser context, currently there can only be one AwBrowserContext
* instance, so at this point the class mostly exists for conceptual clarity.
- *
- * Obtain the default (singleton) instance with AwBrowserProcess.getDefaultBrowserContext().
*/
public class AwBrowserContext {
private AwCookieManager mCookieManager;
private AwFormDatabase mFormDatabase;
private HttpAuthDatabase mHttpAuthDatabase;
+ private DefaultAndroidKeyStore mLocalKeyStore;
public AwBrowserContext(SharedPreferences sharedPreferences) {
mSharedPreferences = sharedPreferences;
return mHttpAuthDatabase;
}
+ public DefaultAndroidKeyStore getKeyStore() {
+ if (mLocalKeyStore == null) {
+ mLocalKeyStore = new DefaultAndroidKeyStore();
+ }
+ return mLocalKeyStore;
+ }
+
/**
* @see android.webkit.WebView#pauseTimers()
*/