2 * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
\r
4 * Licensed under the Apache License, Version 2.0 (the License);
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an AS IS BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 using System.Runtime.InteropServices;
\r
20 namespace Tizen.WebView
\r
23 /// Enumeration that provides an option to error codes.
\r
25 public enum LoadErrorCode
\r
36 /// Can't show page for this MIME Type
\r
38 CantSupportMimetype,
\r
44 /// Cannot connect to network
\r
48 /// Fail to look up host from DNS
\r
52 /// Fail to SSL/TLS handshake
\r
56 /// Received certificate is invalid
\r
60 /// Connection timeout
\r
64 /// Too many redirects
\r
68 /// Too many requests during this load
\r
76 /// Unsupported scheme
\r
80 /// User authentication failed on server
\r
84 /// Web server has internal server error
\r
90 /// Argument from the LoadError SmartCallback.
\r
92 public class SmartCallbackLoadErrorArgs : EventArgs
\r
96 internal SmartCallbackLoadErrorArgs(IntPtr handle)
\r
102 /// Failing URL for the error.
\r
108 return Interop.ChromiumEwk.ewk_error_url_get(_handle);
\r
113 /// The error code.
\r
115 public LoadErrorCode Code
\r
119 return (LoadErrorCode)Interop.ChromiumEwk.ewk_error_code_get(_handle);
\r
124 /// The description for the error.
\r
126 public string Description
\r
130 return Interop.ChromiumEwk.ewk_error_description_get(_handle);
\r
135 /// Whether the error should be treated as a cancellation.
\r
137 public bool Cancellation
\r
141 return Interop.ChromiumEwk.ewk_error_cancellation_get(_handle);
\r
145 internal static SmartCallbackLoadErrorArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
\r
147 return new SmartCallbackLoadErrorArgs(info);
\r