| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef MemoryActivatedFont_h | 31 #ifndef MemoryActivatedFont_h |
| 32 #define MemoryActivatedFont_h | 32 #define MemoryActivatedFont_h |
| 33 | 33 |
| 34 #import <wtf/RefCounted.h> | 34 #import <wtf/RefCounted.h> |
| 35 #import <wtf/RetainPtr.h> | 35 #import <wtf/RetainPtr.h> |
| 36 #import <wtf/text/WTFString.h> | 36 #import <wtf/text/WTFString.h> |
| 37 | 37 |
| 38 typedef struct CGFont* CGFontRef; | 38 typedef struct CGFont* CGFontRef; |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace blink { |
| 41 | 41 |
| 42 // MemoryActivatedFont encapsulates a font loaded from another process and | 42 // MemoryActivatedFont encapsulates a font loaded from another process and |
| 43 // activated from memory. | 43 // activated from memory. |
| 44 // | 44 // |
| 45 // Responsibilities: | 45 // Responsibilities: |
| 46 // * Holder for the CGFontRef & ATSFontRef belonging to the activated font. | 46 // * Holder for the CGFontRef & ATSFontRef belonging to the activated font. |
| 47 // * Responsible for unloading the font container when done. | 47 // * Responsible for unloading the font container when done. |
| 48 // | 48 // |
| 49 // Memory Management: | 49 // Memory Management: |
| 50 // The class is reference counted, with each instance of FontPlatformData that | 50 // The class is reference counted, with each instance of FontPlatformData that |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // load in-process. | 83 // load in-process. |
| 84 // container - a font container corresponding to an identical font that | 84 // container - a font container corresponding to an identical font that |
| 85 // we loaded cross-process. | 85 // we loaded cross-process. |
| 86 MemoryActivatedFont(uint32_t fontID, NSFont*, CGFontRef); | 86 MemoryActivatedFont(uint32_t fontID, NSFont*, CGFontRef); |
| 87 | 87 |
| 88 WTF::RetainPtr<CGFontRef> m_cgFont; | 88 WTF::RetainPtr<CGFontRef> m_cgFont; |
| 89 uint32_t m_fontID; | 89 uint32_t m_fontID; |
| 90 WTF::String m_inSandboxHashKey; | 90 WTF::String m_inSandboxHashKey; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace WebCore | 93 } // namespace blink |
| 94 | 94 |
| 95 #endif // MemoryActivatedFont_h | 95 #endif // MemoryActivatedFont_h |
| OLD | NEW |