OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "pdf/pdfium/pdfium_api_string_buffer_adapter.h" | 5 #include "pdf/pdfium/pdfium_api_string_buffer_adapter.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
11 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
12 | 14 |
13 namespace chrome_pdf { | 15 namespace chrome_pdf { |
14 | 16 |
15 template <class StringType> | 17 template <class StringType> |
16 PDFiumAPIStringBufferAdapter<StringType>::PDFiumAPIStringBufferAdapter( | 18 PDFiumAPIStringBufferAdapter<StringType>::PDFiumAPIStringBufferAdapter( |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 DCHECK(actual_size % sizeof(typename StringType::value_type) == 0); | 79 DCHECK(actual_size % sizeof(typename StringType::value_type) == 0); |
78 adapter_.Close(actual_size / sizeof(typename StringType::value_type)); | 80 adapter_.Close(actual_size / sizeof(typename StringType::value_type)); |
79 } | 81 } |
80 | 82 |
81 // explicit instantiations | 83 // explicit instantiations |
82 template class PDFiumAPIStringBufferAdapter<std::string>; | 84 template class PDFiumAPIStringBufferAdapter<std::string>; |
83 template class PDFiumAPIStringBufferAdapter<base::string16>; | 85 template class PDFiumAPIStringBufferAdapter<base::string16>; |
84 template class PDFiumAPIStringBufferSizeInBytesAdapter<base::string16>; | 86 template class PDFiumAPIStringBufferSizeInBytesAdapter<base::string16>; |
85 | 87 |
86 } // namespace chrome_pdf | 88 } // namespace chrome_pdf |
OLD | NEW |