diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-09-23 15:45:30 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-09-23 15:45:30 -0400 |
| commit | 1d1c2168ff30ac9452b0929db4ae1f5baa83657a (patch) | |
| tree | 1967e3ca3898bf2f33938e89bd1e6add6e49a570 /plugins/cordova-plugin-crosswalk-webview/src/android/XWalkCordovaCookieManager.java | |
| parent | 26821696678cf84ee19f4eb803807e41a7b56780 (diff) | |
updates
Diffstat (limited to 'plugins/cordova-plugin-crosswalk-webview/src/android/XWalkCordovaCookieManager.java')
| -rw-r--r-- | plugins/cordova-plugin-crosswalk-webview/src/android/XWalkCordovaCookieManager.java | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/plugins/cordova-plugin-crosswalk-webview/src/android/XWalkCordovaCookieManager.java b/plugins/cordova-plugin-crosswalk-webview/src/android/XWalkCordovaCookieManager.java deleted file mode 100644 index 43f170d2..00000000 --- a/plugins/cordova-plugin-crosswalk-webview/src/android/XWalkCordovaCookieManager.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. -*/ -package org.crosswalk.engine; - -import org.apache.cordova.ICordovaCookieManager; -import org.xwalk.core.internal.XWalkCookieManager; - -class XWalkCordovaCookieManager implements ICordovaCookieManager { - - protected XWalkCookieManager cookieManager = null; - - public XWalkCordovaCookieManager() { - cookieManager = new XWalkCookieManager(); - } - - public void setCookiesEnabled(boolean accept) { - cookieManager.setAcceptCookie(accept); - } - - public void setCookie(final String url, final String value) { - cookieManager.setCookie(url, value); - } - - public String getCookie(final String url) { - return cookieManager.getCookie(url); - } - - public void clearCookies() { - cookieManager.removeAllCookie(); - } - - public void flush() { - cookieManager.flushCookieStore(); - } -}; - - |
