| 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 "NavigatorContentUtilsClientMock.h" | 5 #include "NavigatorContentUtilsClientMock.h" |
| 6 | 6 |
| 7 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h" | 7 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h" |
| 8 #include "platform/weborigin/KURL.h" | 8 #include "platform/weborigin/KURL.h" |
| 9 #include "wtf/text/StringHash.h" | 9 #include "wtf/text/StringHash.h" |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // function. | 31 // function. |
| 32 if (m_protocolMap.contains(scheme)) | 32 if (m_protocolMap.contains(scheme)) |
| 33 return NavigatorContentUtilsClient::CustomHandlersRegistered; | 33 return NavigatorContentUtilsClient::CustomHandlersRegistered; |
| 34 | 34 |
| 35 return NavigatorContentUtilsClient::CustomHandlersNew; | 35 return NavigatorContentUtilsClient::CustomHandlersNew; |
| 36 } | 36 } |
| 37 | 37 |
| 38 void NavigatorContentUtilsClientMock::unregisterProtocolHandler( | 38 void NavigatorContentUtilsClientMock::unregisterProtocolHandler( |
| 39 const String& scheme, | 39 const String& scheme, |
| 40 const KURL& url) { | 40 const KURL& url) { |
| 41 m_protocolMap.remove(scheme); | 41 m_protocolMap.erase(scheme); |
| 42 } | 42 } |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| OLD | NEW |