OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_COMMON_SPELLCHECK_MARKER_H_ | 5 #ifndef CHROME_COMMON_SPELLCHECK_MARKER_H_ |
6 #define CHROME_COMMON_SPELLCHECK_MARKER_H_ | 6 #define CHROME_COMMON_SPELLCHECK_MARKER_H_ |
7 | 7 |
8 struct SpellCheckMarker { | 8 struct SpellCheckMarker { |
| 9 // IPC requires a default constructor. |
| 10 SpellCheckMarker() : hash(-1), offset(-1) {} |
| 11 |
9 SpellCheckMarker(uint32 hash, size_t offset) : hash(hash), offset(offset) {} | 12 SpellCheckMarker(uint32 hash, size_t offset) : hash(hash), offset(offset) {} |
10 | 13 |
11 uint32 hash; | 14 uint32 hash; |
12 size_t offset; | 15 size_t offset; |
13 }; | 16 }; |
14 | 17 |
15 #endif // CHROME_COMMON_SPELLCHECK_MARKER_H_ | 18 #endif // CHROME_COMMON_SPELLCHECK_MARKER_H_ |
OLD | NEW |