Remove custom dependencies from .gclient because gclient cannot handle branch names with slashes.
Add sync_repos.sh script to update repositories.
Fix breakages because of chromium API updates.
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403
Change-Id: I235de92e72edf59f51accf7b62e9c09d31124f08
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
solutions = [{
'managed' : False,
'name' : 'src',
- 'url' : 'ssh://165.213.202.130:29418/webplatform/s-chromium.git@dev/m38_2101',
+ 'url' : 'ssh://165.213.202.130:29418/webplatform/s-chromium.git@dev/m38_2114',
'custom_deps' : {
- 'src/third_party/WebKit': 'ssh://165.213.202.130:29418/webplatform/s-blink@dev/m38_2101',
+ 'src/third_party/WebKit':None,
'src/sbrowser':None,
- 'src/third_party/skia': 'ssh://165.213.202.130:29418/webplatform/s-skia.git@dev/m38_2101',
- 'src/v8': 'ssh://165.213.202.130:29418/webplatform/s-v8@dev/m38_2101',
+ 'src/third_party/skia':None,
+ 'src/v8':None,
},
'deps_file' : '.DEPS.git',
'safesync_url': '',
net::URLRequest* request,
ResourceContext* resource_context,
AppCacheService* appcache_service,
- ResourceType::Type resource_type,
+ ResourceType resource_type,
int child_id,
int route_id,
ScopedVector<ResourceThrottle>* throttles) {
virtual void RequestBeginning(net::URLRequest* request,
ResourceContext* resource_context,
AppCacheService* appcache_service,
- ResourceType::Type resource_type,
+ ResourceType resource_type,
int child_id, int route_id,
ScopedVector<ResourceThrottle>* throttles) OVERRIDE;
}
blink::TextDirection popup_menu_item_text_direction_get(const Popup_Menu_Item* item) {
- EINA_SAFETY_ON_NULL_RETURN_VAL(item, WebCore::LTR);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(item, blink::LTR);
return item->textDirection;
}
enumerator->OnComplete(true);
}
+SSLHostStateDelegate* BrowserContextEfl::GetSSLHostStateDelegate() {
+ // Pure method in BrowserContext class. Need implementation.
+ NOTIMPLEMENTED();
+}
+
}
private:
static void ReadCertificateAndAdd(base::FilePath* file_path);
+ virtual SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE;
scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_;
ResourceContextEfl* resource_context_;
void ContentBrowserClientEfl::AllowCertificateError(
int render_process_id, int render_frame_id, int cert_error,
const net::SSLInfo& ssl_info, const GURL& request_url,
- ResourceType::Type resource_type, bool overridable,
+ ResourceType resource_type, bool overridable,
bool strict_enforcement, const base::Callback<void(bool)>& callback,
CertificateRequestResultType* result) {
void ContentBrowserClientEfl::RequestDesktopNotificationPermission(
const GURL& source_origin,
content::RenderFrameHost* render_frame_host,
- const base::Closure& callback) {
+ const base::Callback<void(blink::WebNotificationPermission)>& callback) {
#if defined(ENABLE_NOTIFICATIONS) && !defined(EWK_BRINGUP)
WebContents* web_contents = WebContentsFromViewID(render_process_id,
render_view_id);
int cert_error,
const net::SSLInfo& ssl_info,
const GURL& request_url,
- ResourceType::Type resource_type,
+ ResourceType resource_type,
bool overridable,
bool strict_enforcement,
const base::Callback<void(bool)>& callback,
// Asks permission to show desktop notifications.
virtual void RequestDesktopNotificationPermission(const GURL& source_origin,
- content::RenderFrameHost* render_frame_host,
- const base::Closure& callback) OVERRIDE;
+ content::RenderFrameHost* render_frame_host,
+ const base::Callback<void(blink::WebNotificationPermission)>& callback) OVERRIDE;
// Show a desktop notification. If |worker| is true, the request came from an
// HTML5 web worker, otherwise, it came from a renderer.
partition->ClearDataForOrigin(content::StoragePartition::REMOVE_DATA_MASK_APPCACHE,
content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL,
GetGURL(site),
- partition->GetURLRequestContext());
+ partition->GetURLRequestContext(), base::Bind(&base::DoNothing));
}
void EWebContext::GetAllOriginsWithApplicationCache(tizen_webview::Web_Application_Cache_Origins_Get_Callback callback,
// freed).
OnClearCache();
// Clear the font/glyph cache.
- WebCore::FontCache::fontCache()->invalidate();
+ blink::FontCache::fontCache()->invalidate();
// TODO(pk): currently web process not linking sqlite. when used this should enable
// Release all freeable memory from the SQLite process-global page cache (a
// low-level object which backs the Connection-specific page caches).
//while (sqlite3_release_memory(std::numeric_limits<int>::max()) > 0) {
//}
- v8::V8::LowMemoryNotification();
+ v8::Isolate::GetCurrent()->LowMemoryNotification();
// Tell our allocator to release any free pages it's still holding.
base::allocator::ReleaseFreeMemory();
}
void PopulateEwkHitTestData(const blink::WebHitTestResult& web_hit_test, _Ewk_Hit_Test* ewk_hit_test)
{
DCHECK(ewk_hit_test);
+#if !defined(EWK_BRINGUP)
+ // Unifdef it when this change will be relanded: http://165.213.202.130:8080/#/c/68152/
ewk_hit_test->imageURI = web_hit_test.absoluteImageURL().string().utf8();
ewk_hit_test->linkURI = web_hit_test.absoluteLinkURL().string().utf8();
ewk_hit_test->mediaURI = web_hit_test.absoluteMediaURL().string().utf8();
context |= TW_HIT_TEST_RESULT_CONTEXT_EDITABLE;
if (web_hit_test.node().isTextNode())
context |= TW_HIT_TEST_RESULT_CONTEXT_TEXT;
-
+#else
+ int context = TW_HIT_TEST_RESULT_CONTEXT_DOCUMENT;
+#endif
ewk_hit_test->context = static_cast<tizen_webview::Hit_Test_Result_Context>(context);
ewk_hit_test->nodeData.attributeHash = 0;
void RenderViewObserverEfl::OnUseSettingsFont()
{
- WebCore::FontCache::fontCache()->invalidate();
+ blink::FontCache::fontCache()->invalidate();
#if !defined(EWK_BRINGUP)
blink::WebView* view = render_view()->GetWebView();
if (!frame)
return;
+#if !defined(EWK_BRINGUP)
+ // Unifdef it when this change will be relanded: http://165.213.202.130:8080/#/c/68152/
SelectionStylePrams params;
params.underline_state = frame->stateCommand(blink::WebString::fromUTF8("underline"));
params.italic_state = frame->stateCommand(blink::WebString::fromUTF8("italic"));
params.text_align_full_state = frame->stateCommand(blink::WebString::fromUTF8("JustifyFull"));
params.has_composition = frame->hasMarkedText();
Send(new EwkViewMsg_SelectionTextStyleState(render_view()->GetRoutingID(), params));
+#endif
}
void RenderViewObserverEfl::OnSelectClosestWord(int x, int y)
#include "net/http/http_cache.h"
#include "net/http/http_server_properties_impl.h"
#include "net/proxy/proxy_service.h"
-#include "net/ssl/default_server_bound_cert_store.h"
-#include "net/ssl/server_bound_cert_service.h"
+#include "net/ssl/channel_id_service.h"
+#include "net/ssl/default_channel_id_store.h"
#include "net/ssl/ssl_config_service_defaults.h"
#include "net/url_request/data_protocol_handler.h"
#include "net/url_request/file_protocol_handler.h"
new net::URLRequestContextStorage(url_request_context_.get()));
storage_->set_cookie_store(
CreateCookieStore(CookieStoreConfig()));
- storage_->set_server_bound_cert_service(new net::ServerBoundCertService(
- new net::DefaultServerBoundCertStore(NULL),
+ storage_->set_channel_id_service(new net::ChannelIDService(
+ new net::DefaultChannelIDStore(NULL),
base::WorkerPool::GetTaskRunner(true)));
storage_->set_http_user_agent_settings(
new net::StaticHttpUserAgentSettings("en-us,en", std::string()));
url_request_context_->cert_verifier();
network_session_params.transport_security_state =
url_request_context_->transport_security_state();
- network_session_params.server_bound_cert_service =
- url_request_context_->server_bound_cert_service();
+ network_session_params.channel_id_service =
+ url_request_context_->channel_id_service();
network_session_params.proxy_service =
url_request_context_->proxy_service();
network_session_params.ssl_config_service =
int cert_error,
const net::SSLInfo& ssl_info,
const GURL& url,
- ResourceType::Type /*resource_type*/,
+ ResourceType /*resource_type*/,
bool /*overridable*/,
bool /*strict_enforcement*/,
const base::Callback<void(bool)>& callback,
bool final_update) OVERRIDE;
void RequestCertificateConfirm(WebContents* web_contents, int cert_error,
- const net::SSLInfo& ssl_info, const GURL& url, ResourceType::Type resource_type,
+ const net::SSLInfo& ssl_info, const GURL& url, ResourceType resource_type,
bool overridable,
bool strict_enforcement,
const base::Callback<void(bool)>& callback,
--- /dev/null
+#!/bin/bash
+
+BRANCH=dev/m38_2114
+URLBASE='ssh://165.213.202.130:29418/webplatform'
+REPOS=( "src|$URLBASE/s-chromium.git" \
+ "src/third_party/WebKit|$URLBASE/s-blink" \
+ "src/third_party/skia|$URLBASE/s-skia.git" \
+ "src/v8|$URLBASE/s-v8" )
+
+for K in ${REPOS[@]} ; do
+ L=(${K//\|/ })
+ REPOPATH=${L[0]}
+ REPO=${L[1]}
+ if [ -d $REPOPATH ] ; then
+ pushd $REPOPATH 2>&1 > /dev/null
+ CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
+ if [ "x$CURRENT_BRANCH" == "x$BRANCH" ] ; then
+ echo Updating branch $BRANCH of $REPO in $REPOPATH
+ git fetch $REPO $BRANCH
+ git rebase FETCH_HEAD
+ else
+ echo Fetching branch $BRANCH of $REPO into $REPOPATH
+ git fetch $REPO $BRANCH:$BRANCH
+ git checkout $BRANCH
+ fi
+ popd 2>&1 >/dev/null
+ else
+ echo Cloning branch $BRANCH of $REPO into $REPOPATH
+ git clone -b $BRANCH $REPO $REPOPATH
+ fi
+done
+
+gclient sync -n