1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef NavigatorContentUtilsClientImpl_h 6#define NavigatorContentUtilsClientImpl_h 7 8#include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h" 9#include "platform/weborigin/KURL.h" 10 11namespace blink { 12 13class WebViewImpl; 14 15class NavigatorContentUtilsClientImpl FINAL : public NavigatorContentUtilsClient { 16public: 17 static PassOwnPtr<NavigatorContentUtilsClientImpl> create(WebViewImpl*); 18 virtual ~NavigatorContentUtilsClientImpl() { } 19 20 virtual void registerProtocolHandler(const String& scheme, const KURL&, const String& title) OVERRIDE; 21 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme, const KURL&) OVERRIDE; 22 virtual void unregisterProtocolHandler(const String& scheme, const KURL&) OVERRIDE; 23 24private: 25 explicit NavigatorContentUtilsClientImpl(WebViewImpl*); 26 27 WebViewImpl* m_webView; 28}; 29 30} // namespace blink 31 32#endif // NavigatorContentUtilsClientImpl_h 33