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