X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.WebView%2FInterop%2FInterop.ChromiumEwk.Context.cs;h=60021f4871aa156471a56d4677f32890bf7198c5;hb=c72268d1a5fa5279492190a755adcb9f62e95b51;hp=e073823e9a8b0c0cef1488e415704d8904f6064f;hpb=fffe52df9f29a0bfc8a63da20ac12e68d91d1d63;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.WebView/Interop/Interop.ChromiumEwk.Context.cs b/src/Tizen.WebView/Interop/Interop.ChromiumEwk.Context.cs index e073823..60021f4 100644 --- a/src/Tizen.WebView/Interop/Interop.ChromiumEwk.Context.cs +++ b/src/Tizen.WebView/Interop/Interop.ChromiumEwk.Context.cs @@ -1,41 +1,53 @@ -/* - * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed 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. - */ - -using System; -using System.Runtime.InteropServices; - -internal static partial class Interop -{ - internal static partial class ChromiumEwk - { - public enum CacheModel - { - DocumentViewer, - DocumentBrowser, - PrimaryWebBrowser - } - - [DllImport(Libraries.ChromiumEwk)] - internal static extern IntPtr ewk_context_cookie_manager_get(IntPtr context); - - [DllImport(Libraries.ChromiumEwk)] - [return: MarshalAs(UnmanagedType.U1)] - internal static extern bool ewk_context_cache_model_set(IntPtr context, CacheModel model); - - [DllImport(Libraries.ChromiumEwk)] - internal static extern CacheModel ewk_context_cache_model_get(IntPtr context); - } -} +/* + * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed 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. + */ + +using System; +using System.Runtime.InteropServices; + +internal static partial class Interop +{ + internal static partial class ChromiumEwk + { + public enum CacheModel + { + DocumentViewer, + DocumentBrowser, + PrimaryWebBrowser + } + + [DllImport(Libraries.ChromiumEwk)] + internal static extern IntPtr ewk_context_cookie_manager_get(IntPtr context); + + [DllImport(Libraries.ChromiumEwk)] + [return: MarshalAs(UnmanagedType.U1)] + internal static extern bool ewk_context_cache_model_set(IntPtr context, CacheModel model); + + [DllImport(Libraries.ChromiumEwk)] + internal static extern CacheModel ewk_context_cache_model_get(IntPtr context); + + [DllImport(Libraries.ChromiumEwk)] + internal static extern void ewk_context_resource_cache_clear(IntPtr context); + + [DllImport(Libraries.ChromiumEwk)] + internal static extern void ewk_context_notify_low_memory(IntPtr context); + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + internal delegate void DownloadStartCallback(string url, IntPtr userData); + + [DllImport(Libraries.ChromiumEwk)] + internal static extern void ewk_context_did_start_download_callback_set(IntPtr context, DownloadStartCallback callback, IntPtr userData); + } +}