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

Side by Side Diff: pdf/pdfium/pdfium_api_string_buffer_adapter.cc

Issue 1533413002: Switch to standard integer types in pdf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « pdf/pdfium/pdfium_api_string_buffer_adapter.h ('k') | pdf/pdfium/pdfium_assert_matching_enums.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698