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 NavigatorContentUtilsClientMock_h
6 #define NavigatorContentUtilsClientMock_h
8 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
9 #include "wtf/HashSet.h"
10 #include "wtf/text/WTFString.h"
16 // Provides a mock object for the navigatorcontentutils client.
17 class NavigatorContentUtilsClientMock : public NavigatorContentUtilsClient {
19 NavigatorContentUtilsClientMock() { }
20 virtual ~NavigatorContentUtilsClientMock() { }
22 virtual void registerProtocolHandler(const String& scheme, const KURL& baseURL, const KURL&, const String& title);
24 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme, const KURL& baseURL, const KURL&);
25 virtual void unregisterProtocolHandler(const String& scheme, const KURL& baseURL, const KURL&);
35 typedef HashMap<String, ProtocolInfo> RegisteredProtocolMap;
36 RegisteredProtocolMap m_protocolMap;
41 #endif // NavigatorContentUtilsClientMock_h