Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 NavigatorContentUtilsClientMock_h 5 #ifndef NavigatorContentUtilsClientMock_h
6 #define NavigatorContentUtilsClientMock_h 6 #define NavigatorContentUtilsClientMock_h
7 7
8 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h" 8 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
9 #include "wtf/HashSet.h" 9 #include "wtf/HashSet.h"
10 #include "wtf/text/WTFString.h" 10 #include "wtf/text/WTFString.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class KURL; 14 class KURL;
15 15
16 // Provides a mock object for the navigatorcontentutils client. 16 // Provides a mock object for the navigatorcontentutils client.
17 class NavigatorContentUtilsClientMock : public NavigatorContentUtilsClient { 17 class NavigatorContentUtilsClientMock : public NavigatorContentUtilsClient {
18 public: 18 public:
19 NavigatorContentUtilsClientMock() { } 19 NavigatorContentUtilsClientMock() { }
20 virtual ~NavigatorContentUtilsClientMock() { } 20 ~NavigatorContentUtilsClientMock() override { }
21 21
22 virtual void registerProtocolHandler(const String& scheme, const KURL&, cons t String& title); 22 virtual void registerProtocolHandler(const String& scheme, const KURL&, cons t String& title);
23 23
24 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme , const KURL&); 24 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme , const KURL&);
25 virtual void unregisterProtocolHandler(const String& scheme, const KURL&); 25 virtual void unregisterProtocolHandler(const String& scheme, const KURL&);
26 26
27 private: 27 private:
28 typedef struct { 28 typedef struct {
29 String scheme; 29 String scheme;
30 KURL url; 30 KURL url;
31 String title; 31 String title;
32 } ProtocolInfo; 32 } ProtocolInfo;
33 33
34 typedef HashMap<String, ProtocolInfo> RegisteredProtocolMap; 34 typedef HashMap<String, ProtocolInfo> RegisteredProtocolMap;
35 RegisteredProtocolMap m_protocolMap; 35 RegisteredProtocolMap m_protocolMap;
36 }; 36 };
37 37
38 } // namespace blink 38 } // namespace blink
39 39
40 #endif // NavigatorContentUtilsClientMock_h 40 #endif // NavigatorContentUtilsClientMock_h
OLDNEW
« no previous file with comments | « Source/modules/mediastream/UserMediaRequest.h ('k') | Source/modules/netinfo/NetworkInformation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698