| 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 #ifndef COMPONENTS_FONT_SERVICE_PUBLIC_CPP_MAPPED_FONT_FILE_H_ | 5 #ifndef COMPONENTS_FONT_SERVICE_PUBLIC_CPP_MAPPED_FONT_FILE_H_ |
| 6 #define COMPONENTS_FONT_SERVICE_PUBLIC_CPP_MAPPED_FONT_FILE_H_ | 6 #define COMPONENTS_FONT_SERVICE_PUBLIC_CPP_MAPPED_FONT_FILE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| 9 #include "base/files/memory_mapped_file.h" | 11 #include "base/files/memory_mapped_file.h" |
| 10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 11 #include "third_party/skia/include/core/SkStream.h" | 13 #include "third_party/skia/include/core/SkStream.h" |
| 12 | 14 |
| 13 namespace font_service { | 15 namespace font_service { |
| 14 namespace internal { | 16 namespace internal { |
| 15 | 17 |
| 16 // Owns the memory of the mmaped file that we get back from the font_service. | 18 // Owns the memory of the mmaped file that we get back from the font_service. |
| 17 // | 19 // |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 | 47 |
| 46 uint32_t font_id_; | 48 uint32_t font_id_; |
| 47 base::MemoryMappedFile mapped_font_file_; | 49 base::MemoryMappedFile mapped_font_file_; |
| 48 Observer* observer_; | 50 Observer* observer_; |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 } // namespace internal | 53 } // namespace internal |
| 52 } // namespace font_service | 54 } // namespace font_service |
| 53 | 55 |
| 54 #endif // COMPONENTS_FONT_SERVICE_PUBLIC_CPP_MAPPED_FONT_FILE_H_ | 56 #endif // COMPONENTS_FONT_SERVICE_PUBLIC_CPP_MAPPED_FONT_FILE_H_ |
| OLD | NEW |