Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 22871006: Implement unregisterProtocolHandler() function on CUSTOM_SCHEME_HANDLER (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 1006
1007 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we bView) 1007 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we bView)
1008 : m_webView(webView) 1008 : m_webView(webView)
1009 { 1009 {
1010 } 1010 }
1011 1011
1012 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) 1012 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title)
1013 { 1013 {
1014 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); 1014 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
1015 } 1015 }
1016
1017 #if ENABLE(CUSTOM_SCHEME_HANDLER)
1018 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl ::isProtocolHandlerRegistered(const String& scheme, const String& baseURL, const String& url)
1019 {
1020 notImplemented();
1021 return NavigatorContentUtilsClient::CustomHandlersDeclined;
1022 }
1023
1024 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const String& baseURL, const String& url)
1025 {
1026 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
1027 }
1028 #endif
1016 #endif 1029 #endif
1017 1030
1018 } // namespace WebKit 1031 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698