| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/renderer_host/render_sandbox_host_linux.h" | 5 #include "chrome/browser/renderer_host/render_sandbox_host_linux.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <fontconfig/fontconfig.h> | 8 #include <fontconfig/fontconfig.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <unistd.h> | 10 #include <unistd.h> |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 case NPCharsetGB2312: | 540 case NPCharsetGB2312: |
| 541 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("zh")); | 541 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("zh")); |
| 542 break; | 542 break; |
| 543 case NPCharsetEastEurope: | 543 case NPCharsetEastEurope: |
| 544 // A scattering of eastern European languages. | 544 // A scattering of eastern European languages. |
| 545 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("pl")); | 545 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("pl")); |
| 546 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("cs")); | 546 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("cs")); |
| 547 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("sk")); | 547 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("sk")); |
| 548 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("hu")); | 548 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("hu")); |
| 549 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("hr")); | 549 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("hr")); |
| 550 break; |
| 550 case NPCharsetGreek: | 551 case NPCharsetGreek: |
| 551 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("el")); | 552 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("el")); |
| 552 break; | 553 break; |
| 553 case NPCharsetHangul: | 554 case NPCharsetHangul: |
| 554 case NPCharsetJohab: | 555 case NPCharsetJohab: |
| 555 // Korean | 556 // Korean |
| 556 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("ko")); | 557 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("ko")); |
| 557 break; | 558 break; |
| 558 case NPCharsetRussian: | 559 case NPCharsetRussian: |
| 559 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("ru")); | 560 FcLangSetAdd(langset, reinterpret_cast<const FcChar8*>("ru")); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 } | 663 } |
| 663 | 664 |
| 664 RenderSandboxHostLinux::~RenderSandboxHostLinux() { | 665 RenderSandboxHostLinux::~RenderSandboxHostLinux() { |
| 665 if (init_) { | 666 if (init_) { |
| 666 if (HANDLE_EINTR(close(renderer_socket_)) < 0) | 667 if (HANDLE_EINTR(close(renderer_socket_)) < 0) |
| 667 PLOG(ERROR) << "close"; | 668 PLOG(ERROR) << "close"; |
| 668 if (HANDLE_EINTR(close(childs_lifeline_fd_)) < 0) | 669 if (HANDLE_EINTR(close(childs_lifeline_fd_)) < 0) |
| 669 PLOG(ERROR) << "close"; | 670 PLOG(ERROR) << "close"; |
| 670 } | 671 } |
| 671 } | 672 } |
| OLD | NEW |