OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 #ifndef EmptyOffsetMappingBuilder_h |
| 6 #define EmptyOffsetMappingBuilder_h |
| 7 |
| 8 #include "platform/wtf/Allocator.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 // A mock class providing all APIs of an offset mapping builder, but not doing |
| 13 // anything. For templates functions/classes that can optionally create an |
| 14 // offset mapping, this mock class is passed to create an instantiation that |
| 15 // does not create any offset mapping. |
| 16 class EmptyOffsetMappingBuilder { |
| 17 STACK_ALLOCATED(); |
| 18 |
| 19 public: |
| 20 EmptyOffsetMappingBuilder() = default; |
| 21 |
| 22 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(EmptyOffsetMappingBuilder); |
| 24 }; |
| 25 |
| 26 } // namespace blink |
| 27 |
| 28 #endif // EmptyOffsetMappingBuilder_h |
OLD | NEW |