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 #include "web/NavigatorContentUtilsClientImpl.h" | 5 #include "web/NavigatorContentUtilsClientImpl.h" |
6 | 6 |
7 #include "public/web/WebFrameClient.h" | 7 #include "public/web/WebFrameClient.h" |
8 #include "web/WebLocalFrameImpl.h" | 8 #include "web/WebLocalFrameImpl.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 RawPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::create(
WebLocalFrameImpl* webFrame) | 12 NavigatorContentUtilsClientImpl* NavigatorContentUtilsClientImpl::create(WebLoca
lFrameImpl* webFrame) |
13 { | 13 { |
14 return new NavigatorContentUtilsClientImpl(webFrame); | 14 return new NavigatorContentUtilsClientImpl(webFrame); |
15 } | 15 } |
16 | 16 |
17 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebLocalFrameIm
pl* webFrame) | 17 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebLocalFrameIm
pl* webFrame) |
18 : m_webFrame(webFrame) | 18 : m_webFrame(webFrame) |
19 { | 19 { |
20 } | 20 } |
21 | 21 |
22 DEFINE_TRACE(NavigatorContentUtilsClientImpl) | 22 DEFINE_TRACE(NavigatorContentUtilsClientImpl) |
(...skipping 11 matching lines...) Expand all Loading... |
34 { | 34 { |
35 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webFr
ame->client()->isProtocolHandlerRegistered(scheme, url)); | 35 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webFr
ame->client()->isProtocolHandlerRegistered(scheme, url)); |
36 } | 36 } |
37 | 37 |
38 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const KURL& url) | 38 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const KURL& url) |
39 { | 39 { |
40 m_webFrame->client()->unregisterProtocolHandler(scheme, url); | 40 m_webFrame->client()->unregisterProtocolHandler(scheme, url); |
41 } | 41 } |
42 | 42 |
43 } // namespace blink | 43 } // namespace blink |
OLD | NEW |