blob: 13a8e5361b83d9f43362ac1e487ba64c6a6236ae [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NavigatorContentUtilsClientImpl_h
#define NavigatorContentUtilsClientImpl_h
#include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
namespace blink {
class WebLocalFrameImpl;
class NavigatorContentUtilsClientImpl final : public NavigatorContentUtilsClient {
public:
static PassOwnPtrWillBeRawPtr<NavigatorContentUtilsClientImpl> create(WebLocalFrameImpl*);
~NavigatorContentUtilsClientImpl() override { }
void registerProtocolHandler(const String& scheme, const KURL&, const String& title) override;
CustomHandlersState isProtocolHandlerRegistered(const String& scheme, const KURL&) override;
void unregisterProtocolHandler(const String& scheme, const KURL&) override;
DECLARE_VIRTUAL_TRACE();
private:
explicit NavigatorContentUtilsClientImpl(WebLocalFrameImpl*);
RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame;
};
} // namespace blink
#endif // NavigatorContentUtilsClientImpl_h