| 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 "platform/wtf/text/StringHash.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 void NavigatorContentUtilsClientMock::RegisterProtocolHandler( | 13 void NavigatorContentUtilsClientMock::RegisterProtocolHandler( |
| 14 const String& scheme, | 14 const String& scheme, |
| 15 const KURL& url, | 15 const KURL& url, |
| 16 const String& title) { | 16 const String& title) { |
| 17 ProtocolInfo info; | 17 ProtocolInfo info; |
| 18 info.scheme = scheme; | 18 info.scheme = scheme; |
| 19 info.url = url; | 19 info.url = url; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 35 return NavigatorContentUtilsClient::kCustomHandlersNew; | 35 return NavigatorContentUtilsClient::kCustomHandlersNew; |
| 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 protocol_map_.erase(scheme); | 41 protocol_map_.erase(scheme); |
| 42 } | 42 } |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| OLD | NEW |