Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / web / NavigatorContentUtilsClientImpl.h
blobc2f6dd65c23b35ac601ca357a3a92ca9cd6c3195
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.
5 #ifndef NavigatorContentUtilsClientImpl_h
6 #define NavigatorContentUtilsClientImpl_h
8 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
9 #include "platform/weborigin/KURL.h"
11 namespace blink {
13 class WebLocalFrameImpl;
15 class NavigatorContentUtilsClientImpl final : public NavigatorContentUtilsClient {
16 public:
17 static PassOwnPtr<NavigatorContentUtilsClientImpl> create(WebLocalFrameImpl*);
18 ~NavigatorContentUtilsClientImpl() override { }
20 void registerProtocolHandler(const String& scheme, const KURL&, const String& title) override;
21 CustomHandlersState isProtocolHandlerRegistered(const String& scheme, const KURL&) override;
22 void unregisterProtocolHandler(const String& scheme, const KURL&) override;
24 private:
25 explicit NavigatorContentUtilsClientImpl(WebLocalFrameImpl*);
27 WebLocalFrameImpl* m_webFrame;
30 } // namespace blink
32 #endif // NavigatorContentUtilsClientImpl_h