2 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali-toolkit/devel-api/controls/web-view/web-context.h>
25 WebContext::WebContext(Dali::WebEngineContext& context)
26 : mWebEngineContext(context)
30 WebContext::~WebContext()
34 Dali::WebEngineContext::CacheModel WebContext::GetCacheModel() const
36 return mWebEngineContext.GetCacheModel();
39 void WebContext::SetCacheModel(Dali::WebEngineContext::CacheModel cacheModel)
41 mWebEngineContext.SetCacheModel(cacheModel);
44 void WebContext::SetProxyUri(const std::string& uri)
46 mWebEngineContext.SetProxyUri(uri);
49 void WebContext::SetCertificateFilePath(const std::string& certificatePath)
51 mWebEngineContext.SetCertificateFilePath(certificatePath);
54 void WebContext::DisableCache(bool cacheDisabled)
56 mWebEngineContext.DisableCache(cacheDisabled);
59 void WebContext::SetDefaultProxyAuth(const std::string& username, const std::string& password)
61 mWebEngineContext.SetDefaultProxyAuth(username, password);
64 void WebContext::DeleteWebDatabase()
66 mWebEngineContext.DeleteWebDatabase();
69 void WebContext::DeleteWebStorage()
71 mWebEngineContext.DeleteWebStorage();
74 void WebContext::DeleteLocalFileSystem()
76 mWebEngineContext.DeleteLocalFileSystem();
79 void WebContext::ClearCache()
81 mWebEngineContext.ClearCache();
84 } // namespace Toolkit