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 "content/child/dwrite_font_proxy/dwrite_font_proxy_win.h" | 5 #include "content/child/dwrite_font_proxy/dwrite_font_proxy_win.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <utility> | 10 #include <utility> |
8 | 11 |
9 #include "base/debug/crash_logging.h" | 12 #include "base/debug/crash_logging.h" |
10 #include "base/logging.h" | 13 #include "base/logging.h" |
11 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
12 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
13 #include "base/win/scoped_handle.h" | 16 #include "base/win/scoped_handle.h" |
14 #include "content/child/dwrite_font_proxy/dwrite_localized_strings_win.h" | 17 #include "content/child/dwrite_font_proxy/dwrite_localized_strings_win.h" |
15 #include "content/common/dwrite_font_proxy_messages.h" | 18 #include "content/common/dwrite_font_proxy_messages.h" |
16 #include "ipc/ipc_sender.h" | 19 #include "ipc/ipc_sender.h" |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 | 508 |
506 HRESULT FontFileStream::RuntimeClassInitialize( | 509 HRESULT FontFileStream::RuntimeClassInitialize( |
507 const base::string16& file_name) { | 510 const base::string16& file_name) { |
508 data_.Initialize(base::FilePath(file_name)); | 511 data_.Initialize(base::FilePath(file_name)); |
509 if (!data_.IsValid()) | 512 if (!data_.IsValid()) |
510 return E_FAIL; | 513 return E_FAIL; |
511 return S_OK; | 514 return S_OK; |
512 } | 515 } |
513 | 516 |
514 } // namespace content | 517 } // namespace content |
OLD | NEW |