2 * Copyright (c) 2020 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>
26 WebContext::WebContext( Dali::WebEngineContext& context)
27 : mWebEngineContext( context )
31 WebContext::~WebContext()
35 Dali::WebEngineContext::CacheModel WebContext::GetCacheModel() const
37 return mWebEngineContext.GetCacheModel();
40 void WebContext::SetCacheModel(Dali::WebEngineContext::CacheModel cacheModel )
42 mWebEngineContext.SetCacheModel( cacheModel );
45 void WebContext::SetProxyUri( const std::string& uri )
47 mWebEngineContext.SetProxyUri( uri );
50 void WebContext::SetCertificateFilePath( const std::string& certificatePath )
52 mWebEngineContext.SetCertificateFilePath( certificatePath );
55 void WebContext::DisableCache( bool cacheDisabled )
57 mWebEngineContext.DisableCache( cacheDisabled );
60 void WebContext::SetDefaultProxyAuth( const std::string& username, const std::string& password )
62 mWebEngineContext.SetDefaultProxyAuth( username, password );
65 void WebContext::DeleteWebDatabase()
67 mWebEngineContext.DeleteWebDatabase();
70 void WebContext::DeleteWebStorage()
72 mWebEngineContext.DeleteWebStorage();
75 void WebContext::DeleteLocalFileSystem()
77 mWebEngineContext.DeleteLocalFileSystem();
80 void WebContext::ClearCache()
82 mWebEngineContext.ClearCache();
85 } // namespace Toolkit