| 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 #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 "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/HashSet.h" | 10 #include "platform/wtf/HashSet.h" |
| 11 #include "wtf/text/WTFString.h" | 11 #include "platform/wtf/text/WTFString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class KURL; | 15 class KURL; |
| 16 | 16 |
| 17 // Provides a mock object for the navigatorcontentutils client. | 17 // Provides a mock object for the navigatorcontentutils client. |
| 18 class NavigatorContentUtilsClientMock final | 18 class NavigatorContentUtilsClientMock final |
| 19 : public NavigatorContentUtilsClient { | 19 : public NavigatorContentUtilsClient { |
| 20 public: | 20 public: |
| 21 static NavigatorContentUtilsClientMock* Create() { | 21 static NavigatorContentUtilsClientMock* Create() { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 String title; | 41 String title; |
| 42 } ProtocolInfo; | 42 } ProtocolInfo; |
| 43 | 43 |
| 44 typedef HashMap<String, ProtocolInfo> RegisteredProtocolMap; | 44 typedef HashMap<String, ProtocolInfo> RegisteredProtocolMap; |
| 45 RegisteredProtocolMap protocol_map_; | 45 RegisteredProtocolMap protocol_map_; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif // NavigatorContentUtilsClientMock_h | 50 #endif // NavigatorContentUtilsClientMock_h |
| OLD | NEW |