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

Side by Side Diff: content/common/font_config_ipc_linux.h

Issue 1592403002: update obsolete code.google.com documentation links (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 years, 10 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_ 5 #ifndef CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_
6 #define CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_ 6 #define CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/containers/mru_cache.h" 9 #include "base/containers/mru_cache.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 template <> 24 template <>
25 struct hash<SkFontConfigInterface::FontIdentity> { 25 struct hash<SkFontConfigInterface::FontIdentity> {
26 std::size_t operator()(const SkFontConfigInterface::FontIdentity& sp) const; 26 std::size_t operator()(const SkFontConfigInterface::FontIdentity& sp) const;
27 }; 27 };
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 31
32 32
33 // FontConfig implementation for Skia that proxies out of process to get out 33 // FontConfig implementation for Skia that proxies out of process to get out
34 // of the sandbox. See http://code.google.com/p/chromium/wiki/LinuxSandboxIPC 34 // of the sandbox. See https://chromium.googlesource.com/chromium/src/+/master/d ocs/linux_sandbox_ipc.md
35 class FontConfigIPC : public SkFontConfigInterface { 35 class FontConfigIPC : public SkFontConfigInterface {
36 public: 36 public:
37 explicit FontConfigIPC(int fd); 37 explicit FontConfigIPC(int fd);
38 ~FontConfigIPC() override; 38 ~FontConfigIPC() override;
39 39
40 bool matchFamilyName(const char familyName[], 40 bool matchFamilyName(const char familyName[],
41 SkTypeface::Style requested, 41 SkTypeface::Style requested,
42 FontIdentity* outFontIdentifier, 42 FontIdentity* outFontIdentifier,
43 SkString* outFamilyName, 43 SkString* outFamilyName,
44 SkTypeface::Style* outStyle) override; 44 SkTypeface::Style* outStyle) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // this API, this seems okay. 76 // this API, this seems okay.
77 base::HashingMRUCache<FontIdentity, skia::RefPtr<SkTypeface>> 77 base::HashingMRUCache<FontIdentity, skia::RefPtr<SkTypeface>>
78 mapped_typefaces_; 78 mapped_typefaces_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(FontConfigIPC); 80 DISALLOW_COPY_AND_ASSIGN(FontConfigIPC);
81 }; 81 };
82 82
83 } // namespace content 83 } // namespace content
84 84
85 #endif // CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_ 85 #endif // CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/sandbox_ipc_linux.h ('k') | content/common/sandbox_linux/sandbox_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698